smartenv/test.js

15 lines
565 B
JavaScript
Raw Normal View History

2015-11-26 05:31:31 +00:00
/// <reference path="typings/tsd.d.ts" />
var smartenv = require("./index.js");
var beautylog = require("beautylog")("os");
beautylog.info("Now testing the smartenv module");
smartenv.printEnv();
2015-11-28 13:36:47 +00:00
beautylog.info("Now testing the smartenv module");
2015-11-30 18:58:35 +00:00
smartenv.obs.addItem({ key1: "Peter" }, "docit");
smartenv.printEnv();
2015-11-30 18:58:35 +00:00
beautylog.log(smartenv.obs.getItem("docit").key1);
beautylog.log(smartenv.obs.getItem("docit").key1);
var key2 = "hello";
2015-11-30 18:58:35 +00:00
smartenv.obs.getItem("docit").key2 = key2;
beautylog.log(smartenv.obs.getItem("docit").key2);
2015-11-26 05:31:31 +00:00
beautylog.success("Success!");