Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Oct 28, 2024
1 parent 8618ed7 commit 4af2c5a
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

exports[`valueInjectionLoader should correctly insert values for basic config 1`] = `
"
;globalThis[\\"foo\\"] = \\"bar\\";import * as Sentry from '@sentry/nextjs';
;globalThis["foo"] = "bar";import * as Sentry from '@sentry/nextjs';
Sentry.init();
"
`;

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

exports[`valueInjectionLoader should correctly insert values with directive 1`] = `
"
\\"use client\\";globalThis[\\"foo\\"] = \\"bar\\";
"use client";globalThis["foo"] = "bar";
import * as Sentry from '@sentry/nextjs';
Sentry.init();
"
Expand All @@ -30,7 +30,7 @@ exports[`valueInjectionLoader should correctly insert values with directive 1`]
exports[`valueInjectionLoader should correctly insert values with directive and block comments 1`] = `
"
/* test */
\\"use client\\";;globalThis[\\"foo\\"] = \\"bar\\";
"use client";;globalThis["foo"] = "bar";
import * as Sentry from '@sentry/nextjs';
Sentry.init();
"
Expand All @@ -39,7 +39,7 @@ exports[`valueInjectionLoader should correctly insert values with directive and
exports[`valueInjectionLoader should correctly insert values with directive and inline comments 1`] = `
"
// test
\\"use client\\";;globalThis[\\"foo\\"] = \\"bar\\";
"use client";;globalThis["foo"] = "bar";
import * as Sentry from '@sentry/nextjs';
Sentry.init();
"
Expand All @@ -50,7 +50,7 @@ exports[`valueInjectionLoader should correctly insert values with directive and
/*
test
*/
\\"use client\\";;globalThis[\\"foo\\"] = \\"bar\\";
"use client";;globalThis["foo"] = "bar";
import * as Sentry from '@sentry/nextjs';
Sentry.init();
"
Expand All @@ -65,7 +65,7 @@ exports[`valueInjectionLoader should correctly insert values with directive and
\\"use client\\";;globalThis[\\"foo\\"] = \\"bar\\";
"use client";;globalThis["foo"] = "bar";
Expand All @@ -76,7 +76,7 @@ exports[`valueInjectionLoader should correctly insert values with directive and

exports[`valueInjectionLoader should correctly insert values with directive and semicolon 1`] = `
"
\\"use client\\";;globalThis[\\"foo\\"] = \\"bar\\";
"use client";;globalThis["foo"] = "bar";
import * as Sentry from '@sentry/nextjs';
Sentry.init();
"
Expand Down

0 comments on commit 4af2c5a

Please sign in to comment.