Use dprint for internal formatting (#6682)

This commit is contained in:
David Sherret 2020-07-14 15:24:17 -04:00 committed by GitHub
parent 9eca71caa1
commit cde4dbb351
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
378 changed files with 3116 additions and 3121 deletions

View file

@ -17,7 +17,7 @@ Deno.test("ensureDirIfItNotExist", async function (): Promise<void> {
await Deno.stat(testDir).then((): void => {
throw new Error("test dir should exists.");
});
}
},
);
await Deno.remove(baseDir, { recursive: true });
@ -48,7 +48,7 @@ Deno.test("ensureDirIfItExist", async function (): Promise<void> {
await Deno.stat(testDir).then((): void => {
throw new Error("test dir should still exists.");
});
}
},
);
await Deno.remove(baseDir, { recursive: true });
@ -82,7 +82,7 @@ Deno.test("ensureDirIfItAsFile", async function (): Promise<void> {
await ensureDir(testFile);
},
Error,
`Ensure path exists, expected 'dir', got 'file'`
`Ensure path exists, expected 'dir', got 'file'`,
);
await Deno.remove(baseDir, { recursive: true });
@ -99,7 +99,7 @@ Deno.test("ensureDirSyncIfItAsFile", function (): void {
ensureDirSync(testFile);
},
Error,
`Ensure path exists, expected 'dir', got 'file'`
`Ensure path exists, expected 'dir', got 'file'`,
);
Deno.removeSync(baseDir, { recursive: true });