We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd9c10d commit 5df6718Copy full SHA for 5df6718
test/preact.test.mjs
@@ -61,8 +61,12 @@ describe('htm/preact', () => {
61
document.querySelector('button').click();
62
63
setTimeout(() => {
64
- expect(scratch.innerHTML).toBe(fullHtml.replace('jason', 'tom').replace(/\b0\b/g, '2'));
65
- done();
+ try {
+ expect(scratch.innerHTML).toBe(fullHtml.replace('jason', 'tom').replace(/\b0\b/g, '2'));
66
+ }
67
+ finally {
68
+ done();
69
70
});
71
72
0 commit comments