Update devtools
This commit is contained in:
parent
ba108193ec
commit
1b37c64ef8
2 changed files with 6 additions and 6 deletions
|
@ -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),
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue