Revert "fixing the tests"

This reverts commit f69e43a423.
This commit is contained in:
Jarrett Cruger 2014-11-26 12:49:50 -05:00
parent f0d5b6eb30
commit 6271cdb35d
3 changed files with 11 additions and 14 deletions

View file

@ -1,5 +1,4 @@
{
"title": "My specific title",
"color": "green",
"weebls": "crap"
"color": "green"
}

View file

@ -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;
},
@ -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'
}
}
});

View file

@ -107,9 +107,8 @@ 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',
title: 'My specific title',
color: 'green',
movie: 'Kill Bill'
});
}
@ -121,9 +120,8 @@ vows.describe('nconf').addBatch({
"should respond with the merged store": function (ign, err, store) {
assert.isNull(err);
assert.deepEqual(store, {
title: 'My generic title',
color: 'red',
weebls: 'crap',
title: 'My specific title',
color: 'green',
movie: 'Kill Bill'
});
}