Skip to content

Commit

Permalink
Revert "fixing the tests"
Browse files Browse the repository at this point in the history
This reverts commit f69e43a.
  • Loading branch information
jcrugzz committed Nov 26, 2014
1 parent f0d5b6e commit 6271cdb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
3 changes: 1 addition & 2 deletions test/fixtures/hierarchy/user.json
@@ -1,5 +1,4 @@
{
"title": "My specific title",
"color": "green",
"weebls": "crap"
"color": "green"
}
6 changes: 3 additions & 3 deletions test/hierarchy-test.js
Expand Up @@ -20,8 +20,8 @@ vows.describe('nconf/hierarchy').addBatch({
"When using nconf": {
"configured with two file stores": {
topic: function () {
nconf.add('global', { type: 'file', file: globalConfig });
nconf.add('user', { type: 'file', file: userConfig });
nconf.add('global', { type: 'file', file: globalConfig });
nconf.load();
return nconf;
},
Expand Down Expand Up @@ -98,12 +98,12 @@ vows.describe('nconf/hierarchy').addBatch({
assert.deepEqual(JSON.parse(data), {
apples: true,
candy: {
something: 'file1',
something: 'foo',
something1: true,
something2: true,
something5: {
first: 1,
second: 2
second: 'bar'
}
}
});
Expand Down
16 changes: 7 additions & 9 deletions test/nconf-test.js
Expand Up @@ -107,24 +107,22 @@ vows.describe('nconf').addBatch({
"without a callback": {
"should respond with the merged store": function () {
assert.deepEqual(nconf.load(), {
title: 'My generic title',
color: 'red',
weebls: 'crap',
movie: 'Kill Bill'
title: 'My specific title',
color: 'green',
movie: 'Kill Bill'
});
}
},
"with a callback": {
topic: function () {
nconf.load(this.callback.bind(null, null));
nconf.load(this.callback.bind(null, null));
},
"should respond with the merged store": function (ign, err, store) {
assert.isNull(err);
assert.deepEqual(store, {
title: 'My generic title',
color: 'red',
weebls: 'crap',
movie: 'Kill Bill'
title: 'My specific title',
color: 'green',
movie: 'Kill Bill'
});
}
}
Expand Down

0 comments on commit 6271cdb

Please sign in to comment.