Proper teardowns in complete-test.js

This commit is contained in:
Russell Frank 2012-05-03 00:16:13 -04:00
parent 94bdb7dbd8
commit d3e68976c8

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');