fix(config) patch

This commit is contained in:
coderaiser 2017-12-04 18:32:08 +02:00
parent 53d79bfda8
commit af70eb5ee6
2 changed files with 6 additions and 5 deletions

View file

@ -137,12 +137,13 @@ test('cloudcmd: rest: config: patch: save config', (t) => {
editor: 'dword',
};
let originalConfig = readjson.sync.try(pathConfig);
const originalConfig = readjson.sync.try(pathConfig);
patch(`http://localhost:${port}/api/v1/config`, json)
.then(warp(_pullout, 'string'))
.then(() => {
const config = readjson.sync(pathConfig);
t.equal(config.editor, 'dword', 'should change config file on patch');
t.end();