@@ -13,15 +13,15 @@ exports[`Wrong globals for environment on node <=18 print useful error for navig
1313
1414 ReferenceError: navigator is not defined
1515
16- 30 |
17- 31 | test('use navigator', () => {
18- > 32 | const userAgent = navigator .userAgent ;
16+ 31 |
17+ 32 | test('use navigator', () => {
18+ > 33 | const userAgent = navigator .userAgent ;
1919 | ^
20- 33 |
21- 34 | console .log (userAgent );
22- 35 |
20+ 34 |
21+ 35 | console .log (userAgent );
22+ 36 |
2323
24- at Object .navigator (__tests__ / node .js :32 :21 )"
24+ at Object .navigator (__tests__ / node .js :33 :21 )"
2525`;
2626
2727exports [` Wrong globals for environment print useful error for document 1` ] = `
@@ -83,15 +83,15 @@ exports[`Wrong globals for environment print useful error for window 1`] = `
8383
8484 ReferenceError: window is not defined
8585
86- 22 |
8786 23 | test('use window', () => {
88- > 24 | const location = window .location ;
87+ 24 | // eslint-disable-next-line unicorn/prefer-global-this
88+ > 25 | const location = window .location ;
8989 | ^
90- 25 |
91- 26 | console .log (location );
92- 27 |
90+ 26 |
91+ 27 | console .log (location );
92+ 28 |
9393
94- at Object .window (__tests__ / node .js :24 :20 )"
94+ at Object .window (__tests__ / node .js :25 :20 )"
9595`;
9696
9797exports [` Wrong globals for environment print useful error when it explodes during evaluation 1` ] = `
0 commit comments