feat(ts): initial

This commit is contained in:
2018-01-28 04:31:06 +01:00
parent 42eda7bbf2
commit 3472ddfad7
17 changed files with 644 additions and 54 deletions

19
test/test.ts Normal file
View File

@ -0,0 +1,19 @@
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();