mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(config) patch
This commit is contained in:
parent
53d79bfda8
commit
af70eb5ee6
2 changed files with 6 additions and 5 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue