Skip to content

Commit 1aa51d6

Browse files
committed
wip
1 parent ef47a2d commit 1aa51d6

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

integrations/cli/index.test.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ describe.each([
752752
expect(map.at(4, 0)).toMatchObject({
753753
source: null,
754754
original: '(none)',
755-
generated: '}...',
755+
generated: '}\n\n/*# sou...',
756756
})
757757
},
758758
)
@@ -786,7 +786,10 @@ describe.each([
786786
await fs.expectFileToContain('dist/out.css', [candidate`flex`])
787787

788788
// Make sure we can find a source map
789-
let map = parseSourceMap(await fs.read('dist/out.css'))
789+
let map = parseSourceMap({
790+
filepath: 'dist/out.css',
791+
content: await fs.read('dist/out.css'),
792+
})
790793

791794
expect(map.at(1, 0)).toMatchObject({
792795
source: null,
@@ -815,7 +818,7 @@ describe.each([
815818
expect(map.at(4, 0)).toMatchObject({
816819
source: null,
817820
original: '(none)',
818-
generated: '}...',
821+
generated: '}\n\n/*# sou...',
819822
})
820823
},
821824
)
@@ -1118,7 +1121,7 @@ describe.each([
11181121
expect(map.at(4, 0)).toMatchObject({
11191122
source: null,
11201123
original: '(none)',
1121-
generated: '}...',
1124+
generated: '}\n\n/*# sou...',
11221125
})
11231126

11241127
// Write to project source files
@@ -1190,7 +1193,7 @@ describe.each([
11901193
expect(map.at(7, 0)).toMatchObject({
11911194
source: null,
11921195
original: '(none)',
1193-
generated: '}...',
1196+
generated: '}\n\n/*# sou...',
11941197
})
11951198

11961199
// Write to the main CSS file
@@ -1290,7 +1293,7 @@ describe.each([
12901293
expect(map.at(10, 0)).toMatchObject({
12911294
source: null,
12921295
original: '(none)',
1293-
generated: '}...',
1296+
generated: '}\n\n/*# sou...',
12941297
})
12951298
},
12961299
)

0 commit comments

Comments
 (0)