From 7d625086ca4354cc0a3ce63fb6b753fc4895b564 Mon Sep 17 00:00:00 2001 From: Eric Bickle Date: Fri, 14 Jun 2019 19:11:34 -0700 Subject: [PATCH] Fix saveToFile tests on Windows. indexzero#325 (#329) --- test/stores/file-store.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/stores/file-store.test.js b/test/stores/file-store.test.js index 9f66654..0883320 100644 --- a/test/stores/file-store.test.js +++ b/test/stores/file-store.test.js @@ -97,7 +97,7 @@ describe('nconf/stores/file', () => { }); it("the saveToFile() method should save the data correctly", done => { var tmpStore = new nconf.File({file: tmpPath}); - var pathFile = '/tmp/nconf-save-toFile.json'; + var pathFile = path.join(__dirname, '..', 'fixtures', 'tmp-save-tofile.json'); Object.keys(data).forEach(function (key) { tmpStore.set(key, data[key]); @@ -116,7 +116,7 @@ describe('nconf/stores/file', () => { }); it("the saveToFile() method with custom format should save the data correctly", done => { var tmpStore = new nconf.File({file: tmpPath}); - var pathFile = '/tmp/nconf-save-toFile.yaml'; + var pathFile = path.join(__dirname, '..', 'fixtures', 'tmp-save-tofile.yaml'); Object.keys(data).forEach(function (key) { tmpStore.set(key, data[key]);