Skip to content

Commit

Permalink
fix test expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Jul 22, 2022
1 parent ddfbe23 commit 9c43a5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/kit/test/apps/basics/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1079,11 +1079,11 @@ test.describe('$app/stores', () => {
await page.goto('/store');

expect(await page.textContent('h1')).toBe('Test');
expect(await page.textContent('h2')).toBe(javaScriptEnabled ? 'Calls: 2' : 'Calls: 1');
expect(await page.textContent('h2')).toBe('Calls: 1');

await clicknav('a[href="/store/result"]');
expect(await page.textContent('h1')).toBe('Result');
expect(await page.textContent('h2')).toBe(javaScriptEnabled ? 'Calls: 2' : 'Calls: 0');
expect(await page.textContent('h2')).toBe(javaScriptEnabled ? 'Calls: 1' : 'Calls: 0');

const oops = await page.evaluate(() => window.oops);
expect(oops).toBeUndefined();
Expand Down

0 comments on commit 9c43a5c

Please sign in to comment.