Proper teardowns in `complete-test.js`

master
Russell Frank 2012-05-03 00:16:13 -04:00
parent 94bdb7dbd8
commit d3e68976c8
1 changed files with 5 additions and 0 deletions

View File

@ -80,6 +80,10 @@ vows.describe('nconf').addBatch({
assert.equal(nconf.get('weebls'), 'stuff');
}
}
},
teardown: function () {
// remove the file so that we can test saving it async
fs.unlinkSync(completeTest);
}
}
}).addBatch({
@ -116,6 +120,7 @@ vows.describe('nconf').addBatch({
},
teardown: function () {
fs.unlinkSync(completeTest);
nconf.remove('file');
nconf.remove('memory');
nconf.remove('argv');