File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
packages/kit/test/apps/basics Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
<script context =" module" >
2
2
let is_first = true ;
3
3
4
- export function load () {
4
+ export function load ({ url }) {
5
+ if (url .searchParams .get (' reset' )) {
6
+ is_first = true ;
7
+ return {};
8
+ }
9
+
5
10
if (is_first) {
6
11
is_first = false ;
7
12
throw new Error (' uh oh' );
Original file line number Diff line number Diff line change @@ -1719,6 +1719,7 @@ test.describe.parallel('$app/stores', () => {
1719
1719
clicknav,
1720
1720
javaScriptEnabled
1721
1721
} ) => {
1722
+ await page . goto ( '/store/stuff/foo?reset=true' ) ;
1722
1723
const stuff1 = JSON . stringify ( { name : 'SvelteKit' , value : 789 , error : 'uh oh' } ) ;
1723
1724
const stuff2 = JSON . stringify ( { name : 'SvelteKit' , value : 123 , foo : true } ) ;
1724
1725
await page . goto ( '/store/stuff/www' ) ;
You can’t perform that action at this time.
0 commit comments