Fix saveToFile tests on Windows. indexzero#325 (#329)
This commit is contained in:
parent
85edc9afad
commit
7d625086ca
1 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ describe('nconf/stores/file', () => {
|
||||||
});
|
});
|
||||||
it("the saveToFile() method should save the data correctly", done => {
|
it("the saveToFile() method should save the data correctly", done => {
|
||||||
var tmpStore = new nconf.File({file: tmpPath});
|
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) {
|
Object.keys(data).forEach(function (key) {
|
||||||
tmpStore.set(key, data[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 => {
|
it("the saveToFile() method with custom format should save the data correctly", done => {
|
||||||
var tmpStore = new nconf.File({file: tmpPath});
|
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) {
|
Object.keys(data).forEach(function (key) {
|
||||||
tmpStore.set(key, data[key]);
|
tmpStore.set(key, data[key]);
|
||||||
|
|
Loading…
Reference in a new issue