summaryrefslogtreecommitdiff
path: root/std/log/mod_test.ts
blob: 30576011b9b02de4941a2663d4761c1d8026c6fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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 {
  // Pass
}

test("logger is initialized", function (): void {
  assert(logger instanceof Logger);
});