mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-31 16:00:07 +00:00
* style: format Deno.test\("(.+)", async \(\) => \{\n([\S\s]*?)^\}\);
* style: format Deno.test\("(.+)", \(\) => \{\n([\S\s]*?)^\}\);
* style: format Deno.test\("(.+)", async \(t\) => \{\n([\S\s]*?)^\}\);
* style: format async function
* chore: turn all to async
* chore: format add t
* style: function format
* chore: add integration and unit test difference
* ci: combine test
* ci: remove if
* ci: add parallel flag
* ci: add UNIT_TEST_GUILD_ID
* ci: static deno version
* ci: add concurrency to Integration test
* ci: bump actions/checkout to v3
14 lines
334 B
TypeScript
14 lines
334 B
TypeScript
import { delay } from "../mod.ts";
|
|
import { assertEquals } from "./deps.ts";
|
|
|
|
Deno.test({
|
|
name: "[utils] delay 2000 ms",
|
|
ignore: Deno.env.get("TEST_ENV") === "INTEGRATION",
|
|
async fn(t) {
|
|
const before = Date.now();
|
|
await delay(2000);
|
|
const after = Date.now();
|
|
assertEquals(after - before >= 2000, true);
|
|
},
|
|
});
|