Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Aug 31, 2022
1 parent bc302f9 commit 702e26d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/kit/test/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { onMount } from 'svelte';

export function setup() {
onMount(() => {
// give tests programmatic control over the app
Object.assign(window, {
goto,
invalidate,
Expand All @@ -19,6 +20,7 @@ export function setup() {
afterNavigate
});

// communicate that the app is ready
document.body.classList.add('started');
});
}

0 comments on commit 702e26d

Please sign in to comment.