diff options
Diffstat (limited to 'std/http/file_server_test.ts')
-rw-r--r-- | std/http/file_server_test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/std/http/file_server_test.ts b/std/http/file_server_test.ts index 170979b61..12a5b671f 100644 --- a/std/http/file_server_test.ts +++ b/std/http/file_server_test.ts @@ -1,6 +1,6 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { test } from "../testing/mod.ts"; -import { assert, assertEquals } from "../testing/asserts.ts"; +import { assert, assertEquals, assertStrContains } from "../testing/asserts.ts"; import { BufReader } from "../io/bufio.ts"; import { TextProtoReader } from "../textproto/mod.ts"; @@ -109,8 +109,8 @@ test(async function servePermissionDenied(): Promise<void> { try { await fetch("http://localhost:4500/"); - assertEquals( - await errReader.readLine(), + assertStrContains( + (await errReader.readLine()) as string, "run again with the --allow-read flag" ); } finally { |