Skip to content

Commit

Permalink
[INTERNAL] Apply suggestions from UA review
Browse files Browse the repository at this point in the history
Co-authored-by: Günter Klatt <57760635+KlattG@users.noreply.github.com>
  • Loading branch information
RandomByte and KlattG committed Apr 25, 2023
1 parent 19122b5 commit 04fdf8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/cli/commands/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const configCommand = {

configCommand.builder = function(cli) {
return cli
.demandCommand(1, "Command required. Available commands are 'set', 'get' and 'list'")
.demandCommand(1, "Command required. Available commands are 'set', 'get', and 'list'")
.command("set <key> [value]", "Set the value for a given configuration key. " +
"Clear an existing configuration by omitting the value", {
handler: handleConfig,
Expand Down
8 changes: 4 additions & 4 deletions test/lib/cli/commands/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ test.serial("ui5 config set", async (t) => {
}, "Configuration#toFile got called with expected argument");
});

test.serial("ui5 config set without value should delete", async (t) => {
test.serial("ui5 config set without a value should delete the configuration", async (t) => {
const {config, argv, stderrWriteStub, stdoutWriteStub, Configuration} = t.context;

argv["_"] = ["set"];
Expand All @@ -157,7 +157,7 @@ test.serial("ui5 config set without value should delete", async (t) => {
}, "Configuration#toFile got called with expected argument");
});

test.serial("ui5 config set empty value should delete", async (t) => {
test.serial("ui5 config set with an empty value should delete the configuration", async (t) => {
const {config, argv, stderrWriteStub, stdoutWriteStub, Configuration} = t.context;

argv["_"] = ["set"];
Expand All @@ -176,7 +176,7 @@ test.serial("ui5 config set empty value should delete", async (t) => {
}, "Configuration#toFile got called with expected argument");
});

test.serial("ui5 config set null should update", async (t) => {
test.serial("ui5 config set null should update the configuration", async (t) => {
const {config, argv, stderrWriteStub, stdoutWriteStub, Configuration} = t.context;

argv["_"] = ["set"];
Expand All @@ -199,7 +199,7 @@ test.serial("ui5 config set null should update", async (t) => {
}, "Configuration#toFile got called with expected argument");
});

test.serial("ui5 config set false should update", async (t) => {
test.serial("ui5 config set false should update the configuration", async (t) => {
const {config, argv, stderrWriteStub, stdoutWriteStub, Configuration} = t.context;

argv["_"] = ["set"];
Expand Down

0 comments on commit 04fdf8d

Please sign in to comment.