Specify the std/testing/asserts.ts version in deps.ts

This commit is contained in:
ayyanm
2020-10-28 09:24:13 -07:00
parent 6b19de07ff
commit f93cd5e8f4
2 changed files with 7 additions and 7 deletions

10
deps.ts
View File

@@ -1,8 +1,3 @@
export {
assert,
assertArrayContains,
assertEquals,
} from "https://deno.land/std/testing/asserts.ts";
export { delay } from "https://deno.land/std@0.67.0/async/delay.ts";
export { encode } from "https://deno.land/std@0.67.0/encoding/base64.ts";
export {
@@ -12,4 +7,9 @@ export {
isWebSocketPongEvent,
} from "https://deno.land/std@0.67.0/ws/mod.ts";
export type { WebSocket } from "https://deno.land/std@0.67.0/ws/mod.ts";
export {
assert,
assertArrayIncludes,
assertEquals,
} from "https://deno.land/std@0.75.0/testing/asserts.ts";
export { decompress_with as inflate } from "https://unpkg.com/@evan/wasm@0.0.11/target/zlib/deno.js";

View File

@@ -1,4 +1,4 @@
import { assert, assertArrayContains, assertEquals, delay } from "../deps.ts";
import { assert, assertArrayIncludes, assertEquals, delay } from "../deps.ts";
import {
botID,
cache,
@@ -156,7 +156,7 @@ Deno.test({
async fn() {
const channel = cache.channels.get(data.channelID);
if (!channel) throw "Channel not found";
assertArrayContains(channel.permission_overwrites!, [
assertArrayIncludes(channel.permission_overwrites!, [
{
id: data.roleID,
type: OverwriteType.ROLE,