Skip to content

Commit

Permalink
Merge pull request #119 from Swifu69/patch-1
Browse files Browse the repository at this point in the history
chore: use copyFileSync in integration test
  • Loading branch information
crookse authored Nov 24, 2021
2 parents 5aeec56 + 9273980 commit 1b0926b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/integration/update_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ const latestWocketRelease = await GitHubService.getLatestModuleRelease(
function defaultDepsBackToOriginal(dir: string): void {
const pathToOriginal = "tests/integration/" + dir + "/original_deps.ts";
const pathToMain = "tests/integration/" + dir + "/deps.ts";
const originalContent = new TextDecoder().decode(
Deno.readFileSync(pathToOriginal),
);
Deno.writeFileSync(pathToMain, new TextEncoder().encode(originalContent));
Deno.copyFileSync(pathToOriginal, pathToMain);
}

Deno.test({
Expand Down

0 comments on commit 1b0926b

Please sign in to comment.