Skip to content

Commit

Permalink
test: fix writing files
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <[email protected]>
  • Loading branch information
mcansh committed Jul 25, 2022
1 parent 51036c6 commit 28fd442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration/helpers/create-fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ async function writeTestFiles(init: FixtureInit, dir: string) {
let filePath = path.join(dir, filename);
await fse.ensureDir(path.dirname(filePath));
let file = init.files![filename];
if (file === "string") {
if (typeof file === "string") {
await fse.writeFile(filePath, stripIndent(file));
} else {
await fse.writeFile(filePath, file);
Expand Down

0 comments on commit 28fd442

Please sign in to comment.