mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
unit test / utils / hasProperty
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { hasProperty } from "../../src/util/utils.ts";
|
||||
import { assertEquals } from "../deps.ts";
|
||||
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);
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user