8000 Remove separate "internal error" from exec by freitagbr · Pull Request #802 · shelljs/shelljs · GitHub
[go: up one dir, main page]

Skip to content

Remove separate "internal error" from exec #802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jan 29, 2018
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Simplify test regex for missing command
  • Loading branch information
freitagbr committed Jan 28, 2018
commit e60e3b03d855da3c74c1cb45d3f1c264c5f899dc
6 changes: 1 addition & 5 deletions test/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ test('config.fatal and unknown command', t => {
shell.config.fatal = true;
t.throws(() => {
shell.exec('asdfasdf'); // could not find command
// the expected message depends on where tests are run:
// /bin/sh says "foo: not found"
// /bin/bash says "foo: command not found"
// cmd.exe says "'foo' is not recognized..."
}, /((asdfasdf: not found)|(asdfasdf: command not found)|('asdfasdf' is not recognized))/);
}, /asdfasdf/); // name of command should be in error message
shell.config.fatal = oldFatal;
});

Expand Down
0