--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
15
node_modules/config-chain/test/get.js
generated
vendored
Normal file
15
node_modules/config-chain/test/get.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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"));
|
||||
});
|
||||
Loading…
Reference in a new issue