mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 08:20:08 +00:00
21 lines
433 B
TypeScript
21 lines
433 B
TypeScript
import { delay, hasProperty } from "../../util/utils.ts";
|
|
import { assertEquals } from "../deps.ts";
|
|
|
|
// hasProperty
|
|
|
|
const obj = { prop: "lts372005" };
|
|
Deno.test({
|
|
name: "[utils] hasProperty does HAVE property",
|
|
fn() {
|
|
assertEquals(hasProperty(obj, "prop"), true);
|
|
},
|
|
});
|
|
Deno.test({
|
|
name: "[utils] hasProperty does NOT HAVE property",
|
|
fn() {
|
|
assertEquals(hasProperty(obj, "lts372005"), false);
|
|
},
|
|
});
|
|
|
|
// delay
|