Skip to content

Commit 6c245bd

Browse files
committed
test: write the BOM fixture with the escape sequence per review suggestion
1 parent fd5316e commit 6c245bd

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

src/commands/test.test.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3414,13 +3414,12 @@ describe('runExport / runImport', () => {
34143414
const file = join(dir, 'def.testsprite.json');
34153415
writeFileSync(
34163416
file,
3417-
'' +
3418-
JSON.stringify({
3419-
schemaVersion: 1,
3420-
projectId: 'project_alice',
3421-
type: 'backend',
3422-
name: 'BOM test',
3423-
}),
3417+
`\uFEFF${JSON.stringify({
3418+
schemaVersion: 1,
3419+
projectId: 'project_alice',
3420+
type: 'backend',
3421+
name: 'BOM test',
3422+
})}`,
34243423
'utf8',
34253424
);
34263425
const fetchImpl = (async () =>

0 commit comments

Comments
 (0)