summaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
Diffstat (limited to 'std')
-rw-r--r--std/http/file_server_test.ts12
-rw-r--r--std/tsconfig.json15
-rw-r--r--std/tsconfig.test.json5
3 files changed, 5 insertions, 27 deletions
diff --git a/std/http/file_server_test.ts b/std/http/file_server_test.ts
index 16540bffa..77467b8c8 100644
--- a/std/http/file_server_test.ts
+++ b/std/http/file_server_test.ts
@@ -33,16 +33,16 @@ function killFileServer(): void {
test(async function serveFile(): Promise<void> {
await startFileServer();
try {
- const res = await fetch("http://localhost:4500/tsconfig.json");
+ const res = await fetch("http://localhost:4500/README.md");
assert(res.headers.has("access-control-allow-origin"));
assert(res.headers.has("access-control-allow-headers"));
assertEquals(
res.headers.get("content-type"),
- "application/json; charset=utf-8"
+ "text/markdown; charset=utf-8"
);
const downloadedFile = await res.text();
const localFile = new TextDecoder().decode(
- await Deno.readFile("./tsconfig.json")
+ await Deno.readFile("README.md")
);
assertEquals(downloadedFile, localFile);
} finally {
@@ -57,7 +57,7 @@ test(async function serveDirectory(): Promise<void> {
assert(res.headers.has("access-control-allow-origin"));
assert(res.headers.has("access-control-allow-headers"));
const page = await res.text();
- assert(page.includes("tsconfig.json"));
+ assert(page.includes("README.md"));
// `Deno.FileInfo` is not completely compatible with Windows yet
// TODO: `mode` should work correctly in the future.
@@ -66,9 +66,7 @@ test(async function serveDirectory(): Promise<void> {
assert(/<td class="mode">\([a-zA-Z-]{10}\)<\/td>/.test(page));
Deno.build.os === "win" &&
assert(/<td class="mode">\(unknown mode\)<\/td>/.test(page));
- assert(
- page.includes(`<td><a href="/tsconfig.json">tsconfig.json</a></td>`)
- );
+ assert(page.includes(`<td><a href="/README.md">README.md</a></td>`));
} finally {
killFileServer();
}
diff --git a/std/tsconfig.json b/std/tsconfig.json
deleted file mode 100644
index 732e8322c..000000000
--- a/std/tsconfig.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "extends": "./tsconfig.test.json",
- "compilerOptions": {
- "allowJs": true,
- "baseUrl": ".",
- "module": "esnext",
- "moduleResolution": "node",
- "noEmit": true,
- "pretty": true,
- "resolveJsonModule": true,
- "target": "esnext",
- "lib": ["esnext"]
- },
- "include": ["./**/*.ts"]
-}
diff --git a/std/tsconfig.test.json b/std/tsconfig.test.json
deleted file mode 100644
index aee0ec940..000000000
--- a/std/tsconfig.test.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "compilerOptions": {
- "strict": true
- }
-}