From 1b37c64ef81bfb0e351fba690b120e63c7217d71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Lemaire?= Date: Wed, 2 Dec 2020 22:06:45 +0100 Subject: [PATCH] Update devtools --- server.test.ts | 10 +++++----- server.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/server.test.ts b/server.test.ts index 0367370..6ae28e3 100644 --- a/server.test.ts +++ b/server.test.ts @@ -1,11 +1,11 @@ import { expect, + it, mockfn, - test, -} from "https://code.thunderk.net/typescript/devtools/raw/1.0.1/testing.ts"; +} from "https://code.thunderk.net/typescript/devtools/raw/1.2.2/testing.ts"; import { processRequest } from "./server.ts"; -test("serveBundles standard", async () => { +it("serveBundles standard", async () => { const mock_run = mockfn(() => { return { output: () => Promise.resolve(new TextEncoder().encode("abc")), @@ -29,7 +29,7 @@ test("serveBundles standard", async () => { }); }); -test("serveBundles bad path", async () => { +it("serveBundles bad path", async () => { const mock_run = mockfn(() => { return { output: () => Promise.resolve(new TextEncoder().encode("abc")), @@ -51,7 +51,7 @@ test("serveBundles bad path", async () => { expect(mock_run).toHaveBeenCalledTimes(0); }); -test("serveBundles bundle fail", async () => { +it("serveBundles bundle fail", async () => { const mock_run = mockfn(() => { return { output: () => Promise.resolve(undefined), diff --git a/server.ts b/server.ts index 23db600..fe84fe1 100755 --- a/server.ts +++ b/server.ts @@ -6,7 +6,7 @@ import { Response, serve, ServerRequest, -} from "https://deno.land/std/http/server.ts"; +} from "https://deno.land/std@0.79.0/http/server.ts"; export async function processRequest( req: ServerRequest,