1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/std/log/mod_test.ts
2020-05-20 16:27:01 +02:00

16 lines
480 B
TypeScript

// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
const { test } = Deno;
import { Logger } from "./logger.ts";
import { assert } from "../testing/asserts.ts";
import { getLogger } from "./mod.ts";
let logger: Logger | null = null;
try {
// Need to initialize it here
// otherwise it will be already initialized on Deno.test
logger = getLogger();
} catch {}
test("logger is initialized", function (): void {
assert(logger instanceof Logger);
});