mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 18:23:35 +00:00
test(distribute) import: env: reassign -> delete
This commit is contained in:
parent
d8c2ac4708
commit
f434bd1133
1 changed files with 1 additions and 2 deletions
|
|
@ -223,7 +223,6 @@ test('distribute: import: env', async (t) => {
|
|||
},
|
||||
});
|
||||
|
||||
const {cloudcmd_editor} = process.env;
|
||||
process.env.cloudcmd_editor = 'some editor';
|
||||
|
||||
configManagerImport('importUrl', `http://localhost:${exporter.port}`);
|
||||
|
|
@ -233,7 +232,7 @@ test('distribute: import: env', async (t) => {
|
|||
await importer.done();
|
||||
await exporter.done();
|
||||
|
||||
process.env.cloudcmd_editor = cloudcmd_editor;
|
||||
delete process.env.cloudcmd_editor;
|
||||
|
||||
const result = configManagerImport('editor');
|
||||
const expected = 'deepword';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue