From d3e68976c8d7d0bbf592b9c2f06f77eb84b6ec0d Mon Sep 17 00:00:00 2001 From: Russell Frank Date: Thu, 3 May 2012 00:16:13 -0400 Subject: [PATCH] Proper teardowns in `complete-test.js` --- test/complete-test.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/complete-test.js b/test/complete-test.js index 7ff1e08..e547c15 100644 --- a/test/complete-test.js +++ b/test/complete-test.js @@ -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');