Skip to content

Commit

Permalink
fix: Removed unnecessary colon in config error
Browse files Browse the repository at this point in the history
  • Loading branch information
kumar303 committed Jan 9, 2018
1 parent 854c82c commit 9c3d0b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function applyConfigToArgv({
if (optionType !== expectedType) {
throw new UsageError(`The config file at ${configFileName} specified ` +
`the type of "${option}" incorrectly as "${optionType}"` +
` (expected type: "${expectedType}")`);
` (expected type "${expectedType}")`);
}

let defaultValue;
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ describe('config', () => {
() => applyConf({...params, configObject}),
UsageError,
'UsageError: The config file at some/path/to/config.js specified the ' +
'type of "retries" incorrectly as "string" (expected type: "number")'
'type of "retries" incorrectly as "string" (expected type "number")'
);
});

Expand Down Expand Up @@ -837,7 +837,7 @@ describe('config', () => {
configObject});
}, UsageError, 'UsageError: The config file at some/path/to/config.js ' +
'specified the type of "apiUrl" incorrectly as "number"' +
' (expected type: "string")');
' (expected type "string")');
});

});
Expand Down

0 comments on commit 9c3d0b6

Please sign in to comment.