From 491ae3d60f10b3cc30c76a67b7ae8ffd0571d38d Mon Sep 17 00:00:00 2001 From: khk37601 Date: Thu, 9 Sep 2021 15:00:58 +0900 Subject: [PATCH] docs(testing.md): fix type MiddleWare not found to MiddleWare url --- docs/testing.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/testing.md b/docs/testing.md index 89eefa0c..da71149f 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -24,8 +24,7 @@ In the following example, we will create a middleware that checks if the request path is `"/a"` and if so, sets the body and a header in the response: ```ts -import { testing } from "https://deno.land/x/oak/mod.ts"; -import type { Middleware } from "https://deno.land/x/mod.ts"; +import { testing, Middleware } from "https://deno.land/x/oak/mod.ts"; import { assert, assertEquals } from "https://deno.land/std/testing/asserts.ts"; const mw: Middleware = async (ctx, next) => {