Skip to content

Commit 4af2c5a

Browse files
committed
update snapshots
1 parent 8618ed7 commit 4af2c5a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

packages/nextjs/test/config/__snapshots__/valueInjectionLoader.test.ts.snap

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
exports[`valueInjectionLoader should correctly insert values for basic config 1`] = `
44
"
5-
;globalThis[\\"foo\\"] = \\"bar\\";import * as Sentry from '@sentry/nextjs';
5+
;globalThis["foo"] = "bar";import * as Sentry from '@sentry/nextjs';
66
Sentry.init();
77
"
88
`;
99

1010
exports[`valueInjectionLoader should correctly insert values with a misplaced directive 1`] = `
1111
"
12-
;globalThis[\\"foo\\"] = \\"bar\\";console.log('This will render the directive useless');
13-
\\"use client\\";
12+
;globalThis["foo"] = "bar";console.log('This will render the directive useless');
13+
"use client";
1414
1515
1616
@@ -21,7 +21,7 @@ exports[`valueInjectionLoader should correctly insert values with a misplaced di
2121

2222
exports[`valueInjectionLoader should correctly insert values with directive 1`] = `
2323
"
24-
\\"use client\\";globalThis[\\"foo\\"] = \\"bar\\";
24+
"use client";globalThis["foo"] = "bar";
2525
import * as Sentry from '@sentry/nextjs';
2626
Sentry.init();
2727
"
@@ -30,7 +30,7 @@ exports[`valueInjectionLoader should correctly insert values with directive 1`]
3030
exports[`valueInjectionLoader should correctly insert values with directive and block comments 1`] = `
3131
"
3232
/* test */
33-
\\"use client\\";;globalThis[\\"foo\\"] = \\"bar\\";
33+
"use client";;globalThis["foo"] = "bar";
3434
import * as Sentry from '@sentry/nextjs';
3535
Sentry.init();
3636
"
@@ -39,7 +39,7 @@ exports[`valueInjectionLoader should correctly insert values with directive and
3939
exports[`valueInjectionLoader should correctly insert values with directive and inline comments 1`] = `
4040
"
4141
// test
42-
\\"use client\\";;globalThis[\\"foo\\"] = \\"bar\\";
42+
"use client";;globalThis["foo"] = "bar";
4343
import * as Sentry from '@sentry/nextjs';
4444
Sentry.init();
4545
"
@@ -50,7 +50,7 @@ exports[`valueInjectionLoader should correctly insert values with directive and
5050
/*
5151
test
5252
*/
53-
\\"use client\\";;globalThis[\\"foo\\"] = \\"bar\\";
53+
"use client";;globalThis["foo"] = "bar";
5454
import * as Sentry from '@sentry/nextjs';
5555
Sentry.init();
5656
"
@@ -65,7 +65,7 @@ exports[`valueInjectionLoader should correctly insert values with directive and
6565
6666
6767
68-
\\"use client\\";;globalThis[\\"foo\\"] = \\"bar\\";
68+
"use client";;globalThis["foo"] = "bar";
6969
7070
7171
@@ -76,7 +76,7 @@ exports[`valueInjectionLoader should correctly insert values with directive and
7676

7777
exports[`valueInjectionLoader should correctly insert values with directive and semicolon 1`] = `
7878
"
79-
\\"use client\\";;globalThis[\\"foo\\"] = \\"bar\\";
79+
"use client";;globalThis["foo"] = "bar";
8080
import * as Sentry from '@sentry/nextjs';
8181
Sentry.init();
8282
"

0 commit comments

Comments
 (0)