Portfolio/node_modules/config-chain/test/get.js
oitsjustjose 4e066bffc9 Init
2017-02-25 03:50:31 -05:00

15 lines
391 B
JavaScript

var cc = require("../");
var chain = cc()
, name = "forFun";
chain
.add({
__sample:"for fun only"
}, name)
.on("load", function() {
//It throw exception here
console.log(chain.get("__sample", name));
//But if I drop the name param, it run normally and return as expected: "for fun only"
//console.log(chain.get("__sample"));
});