Skip to content

Commit 8f5c686

Browse files
committed
test: Update tests for upstream preact fix
1 parent dba70b7 commit 8f5c686

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/router.test.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,7 @@ describe('Router', () => {
248248

249249
expect(scratch).to.have.property('innerHTML', '<h1>A</h1><p>hello</p>');
250250
// We should never re-invoke <A /> while loading <B /> (that would be a remount of the old route):
251-
// ...but we do
252-
//expect(A).not.to.have.been.called;
251+
expect(A).not.to.have.been.called;
253252
expect(B).to.have.been.calledWith({ path: '/b', query: {}, params: {}, rest: '' });
254253

255254
B.resetHistory();
@@ -275,8 +274,7 @@ describe('Router', () => {
275274

276275
expect(scratch).to.have.property('innerHTML', '<h1>B</h1><p>hello</p>');
277276
// We should never re-invoke <B /> while loading <C /> (that would be a remount of the old route):
278-
// ...but we do
279-
//expect(B).not.to.have.been.called;
277+
expect(B).not.to.have.been.called;
280278
expect(C).to.have.been.calledWith({ path: '/c', query: {}, params: {}, rest: '' });
281279

282280
C.resetHistory();

0 commit comments

Comments
 (0)