1- import { outdent } from 'outdent ' ;
1+ import dedent from 'dedent ' ;
22import { sep , posix , win32 } from 'path' ;
33
44import { addFileScope , normalizePath } from './addFileScope' ;
@@ -13,7 +13,7 @@ expect.addSnapshotSerializer({
1313
1414describe ( 'ESM' , ( ) => {
1515 test ( 'should add missing fileScope' , ( ) => {
16- const source = outdent `
16+ const source = dedent `
1717 import {style} from '@vanilla-extract/css';
1818
1919 export const myStyle = style({});
@@ -37,7 +37,7 @@ describe('ESM', () => {
3737 } ) ;
3838
3939 test ( 'should add global adapter setup when "globalAdapterIdentifier" is provided' , ( ) => {
40- const source = outdent `
40+ const source = dedent `
4141 import {style} from '@vanilla-extract/css';
4242
4343 export const myStyle = style({});
@@ -65,7 +65,7 @@ describe('ESM', () => {
6565 } ) ;
6666
6767 test ( 'should update existing fileScope' , ( ) => {
68- const source = outdent `
68+ const source = dedent `
6969 import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
7070 setFileScope("some-weird-file", "some-weird-package");
7171 import {style} from '@vanilla-extract/css';
@@ -92,7 +92,7 @@ describe('ESM', () => {
9292 } ) ;
9393
9494 test ( 'should update existing fileScope with newlines' , ( ) => {
95- const source = outdent `
95+ const source = dedent `
9696 import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
9797 setFileScope(
9898 "some-weird-file",
@@ -122,7 +122,7 @@ describe('ESM', () => {
122122 } ) ;
123123
124124 test ( 'should handle namespaced filescope calls' , ( ) => {
125- const source = outdent `
125+ const source = dedent `
126126 import * as vanillaFileScope from "@vanilla-extract/css/fileScope";
127127 vanillaFileScope.setFileScope("some-weird-file");
128128 import {style} from '@vanilla-extract/css';
@@ -151,7 +151,7 @@ describe('ESM', () => {
151151
152152describe ( 'CJS' , ( ) => {
153153 test ( 'should add missing fileScope' , ( ) => {
154- const source = outdent `
154+ const source = dedent `
155155 const _css = require('@vanilla-extract/css');
156156
157157 var myStyle = _css.style({});
@@ -177,7 +177,7 @@ describe('CJS', () => {
177177 } ) ;
178178
179179 test ( 'should add global adapter setup when "globalAdapterIdentifier" is provided' , ( ) => {
180- const source = outdent `
180+ const source = dedent `
181181 const _css = require('@vanilla-extract/css');
182182
183183 var myStyle = _css.style({});
@@ -207,7 +207,7 @@ describe('CJS', () => {
207207 } ) ;
208208
209209 test ( 'should update existing fileScope' , ( ) => {
210- const source = outdent `
210+ const source = dedent `
211211 const __vanilla_filescope__ = require("@vanilla-extract/css/fileScope");
212212 __vanilla_filescope__.setFileScope("some-weird-file", "some-weird-package");
213213 const _css = require('@vanilla-extract/css');
@@ -236,7 +236,7 @@ describe('CJS', () => {
236236 } ) ;
237237
238238 test ( 'should update existing fileScope with newlines' , ( ) => {
239- const source = outdent `
239+ const source = dedent `
240240 const __vanilla_filescope__ = require("@vanilla-extract/css/fileScope");
241241 __vanilla_filescope__.setFileScope(
242242 "some-weird-file",
@@ -280,7 +280,7 @@ test('platform-specific relative path', () => {
280280 } ,
281281 } [ sep ] ;
282282
283- const source = outdent `
283+ const source = dedent `
284284 import { style } from '@vanilla-extract/css';
285285
286286 export const myStyle = style({});
0 commit comments