Proper teardowns in complete-test.js
This commit is contained in:
parent
94bdb7dbd8
commit
d3e68976c8
1 changed files with 5 additions and 0 deletions
|
@ -80,6 +80,10 @@ vows.describe('nconf').addBatch({
|
||||||
assert.equal(nconf.get('weebls'), 'stuff');
|
assert.equal(nconf.get('weebls'), 'stuff');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
teardown: function () {
|
||||||
|
// remove the file so that we can test saving it async
|
||||||
|
fs.unlinkSync(completeTest);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}).addBatch({
|
}).addBatch({
|
||||||
|
@ -116,6 +120,7 @@ vows.describe('nconf').addBatch({
|
||||||
},
|
},
|
||||||
|
|
||||||
teardown: function () {
|
teardown: function () {
|
||||||
|
fs.unlinkSync(completeTest);
|
||||||
nconf.remove('file');
|
nconf.remove('file');
|
||||||
nconf.remove('memory');
|
nconf.remove('memory');
|
||||||
nconf.remove('argv');
|
nconf.remove('argv');
|
||||||
|
|
Loading…
Reference in a new issue