mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 01:40:08 +00:00
Specify the std/testing/asserts.ts version in deps.ts
This commit is contained in:
10
deps.ts
10
deps.ts
@@ -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";
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user