mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 08:20:08 +00:00
29 lines
665 B
TypeScript
29 lines
665 B
TypeScript
import { delay } from "../src/util/utils.ts";
|
|
|
|
// CHANGE TO TRUE WHEN DEBUGGING SANITIZATION ERRORS
|
|
const sanitizeMode = {
|
|
sanitizeResources: false,
|
|
sanitizeOps: false,
|
|
sanitizeExit: false,
|
|
};
|
|
|
|
Deno.test({
|
|
name: "- Example Tests",
|
|
fn: async (t) => {
|
|
await t.step("Nested tests", async (t) => {
|
|
await t.step({ name: "this is quick", fn: () => {}, ...sanitizeMode });
|
|
|
|
await Promise.all([
|
|
t.step({
|
|
name: "[example] 1",
|
|
fn: async (t) => {
|
|
await delay(60000);
|
|
},
|
|
...sanitizeMode,
|
|
}),
|
|
])
|
|
});
|
|
},
|
|
...sanitizeMode,
|
|
});
|