Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
✅ Reorder set tests for intelligibility
Browse files Browse the repository at this point in the history
  • Loading branch information
willclarktech committed Apr 5, 2018
1 parent 93b729d commit ea8a3b9
Showing 1 changed file with 11 additions and 21 deletions.
32 changes: 11 additions & 21 deletions test/specs/commands/set.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ describe('set command', () => {
given.aDirectoryPath,
() => {
Given('a config file name "config.json"', given.aConfigFileName, () => {
Given(
'a config with unknown properties',
given.aConfigWithUnknownProperties,
() => {
Given('an action "set"', given.anAction, () => {
Given('an action "set"', given.anAction, () => {
Given(
'a config with unknown properties',
given.aConfigWithUnknownProperties,
() => {
Given('a variable "api.node"', given.aVariable, () => {
Given('a value "true"', given.aValue, () => {
When(
Expand All @@ -45,19 +45,9 @@ describe('set command', () => {
);
});
});
});
},
);
});
},
);
Given('a config', given.aConfig, () => {
Given(
`a directory path "${process.env.LISKY_CONFIG_DIR}"`,
given.aDirectoryPath,
() => {
Given('a config file name "config.json"', given.aConfigFileName, () => {
Given('an action "set"', given.anAction, () => {
},
);
Given('a config', given.aConfig, () => {
Given('an unknown variable "xxx"', given.anUnknownVariable, () => {
Given('a value "true"', given.aValue, () => {
When(
Expand Down Expand Up @@ -832,7 +822,7 @@ describe('set command', () => {
});
});
});
},
);
});
});
},
);
});

0 comments on commit ea8a3b9

Please sign in to comment.