Fix saveToFile tests on Windows. indexzero#325 (#329)

master
Eric Bickle 2019-06-14 19:11:34 -07:00 committed by Matt Hamann
parent 85edc9afad
commit 7d625086ca
1 changed files with 2 additions and 2 deletions

View File

@ -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]);