Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down