smartlog/test/test.ts

20 lines
500 B
TypeScript
Raw Normal View History

2018-01-28 03:31:06 +00:00
import { expect, tap } from "tapbundle";
import * as smartlog from "../ts/index";
let defaultLogger: smartlog.Smartlog;
tap.test("should produce instance of Smartlog", async () => {
defaultLogger = smartlog.getDefaultLogger();
expect(defaultLogger).to.be.instanceOf(smartlog.Smartlog);
});
tap.test("should enable console logging", async () => {
defaultLogger.enableConsole();
});
tap.test("should be able to log things", async () => {
defaultLogger.log("silly", "hi");
});
tap.start();