Skip to content

Commit

Permalink
test(distribute) import: env: reassign -> delete
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Sep 11, 2020
1 parent d8c2ac4 commit f434bd1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/distribute/import.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand All @@ -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';
Expand Down

0 comments on commit f434bd1

Please sign in to comment.