mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 15:14:33 +00:00
parent
68584f983e
commit
c164e696d7
10 changed files with 56 additions and 56 deletions
|
@ -1,10 +1,6 @@
|
|||
import { readFile } from "deno";
|
||||
|
||||
import {
|
||||
test,
|
||||
assert,
|
||||
assertEqual
|
||||
} from "../testing/mod.ts";
|
||||
import { test, assert, assertEqual } from "../testing/mod.ts";
|
||||
|
||||
// Promise to completeResolve when all tests completes
|
||||
let completeResolve;
|
||||
|
@ -27,7 +23,9 @@ export function runTests(serverReadyPromise: Promise<any>) {
|
|||
assert(res.headers.has("access-control-allow-headers"));
|
||||
assertEqual(res.headers.get("content-type"), "text/yaml");
|
||||
const downloadedFile = await res.text();
|
||||
const localFile = new TextDecoder().decode(await readFile("./azure-pipelines.yml"));
|
||||
const localFile = new TextDecoder().decode(
|
||||
await readFile("./azure-pipelines.yml")
|
||||
);
|
||||
assertEqual(downloadedFile, localFile);
|
||||
maybeCompleteTests();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue