Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/elm-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ function main() {
.description(
'Like `elm install package`, except it installs to "test-dependencies" in your elm.json'
)
.action(([packageName], cmd) => {
.action((packageName, cmd) => {
if (cmd.args.length > 1) {
// Unfortunately commander is very permissive about extra arguments. Therefore,
// we manually check for excessive arguments.
Expand Down
6 changes: 6 additions & 0 deletions tests/flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ describe('flags', () => {
assert(!runResult.stdout.includes('FINDME'));
assert(!runResult.stderr.includes('FINDMETWICE'));
}).timeout(60000);

it('should exit with success if package already installed', () => {
const runResult = execElmTest(['install', 'elm-explorations/test']);
console.log(runResult);
assert.strictEqual(runResult.status, 0);
}).timeout(60000);
});

describe('elm-test make', () => {
Expand Down