mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -05:00
15 lines
391 B
TypeScript
15 lines
391 B
TypeScript
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
|
import { assert } from "../../testing/asserts.ts";
|
|
const { test } = Deno;
|
|
// @ts-ignore
|
|
import { NIL_UUID, isNil } from "../mod.ts";
|
|
|
|
test({
|
|
name: "[UUID] isNil",
|
|
fn(): void {
|
|
const nil = NIL_UUID;
|
|
const u = "582cbcff-dad6-4f28-888a-e062ae36bafc";
|
|
assert(isNil(nil));
|
|
assert(!isNil(u));
|
|
},
|
|
});
|