smartenv/ts/test.ts
Philipp Kunz 5a45aa5fbe initial
2015-11-26 06:31:31 +01:00

11 lines
398 B
TypeScript

/// <reference path="typings/tsd.d.ts" />
var smartenv = require("./index.js");
var beautylog = require("beautylog")("os");
beautylog.info("Now testing the smartenv module");
smartenv.info();
smartenv.register({key1:"Peter"},"docit");
smartenv.info();
beautylog.log(smartenv.get("docit").key1);
smartenv.makeGlobal();
beautylog.log(global.smartenv.get("docit").key1);
beautylog.success("Success!");