Skip to content

Commit 950b57e

Browse files
committed
test: Update tests for upstream preact fix
1 parent dba70b7 commit 950b57e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"chai": "^5.1.1",
4444
"htm": "^3.1.1",
4545
"kleur": "^4.1.5",
46-
"preact": "^10.24.3",
46+
"preact": "https://github.com/preactjs/preact#revert/force-update-edgecase",
4747
"preact-render-to-string": "^6.5.11",
4848
"sinon": "^18.0.0",
4949
"sinon-chai": "^4.0.0",

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)