mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-03-12 22:30:00 +00:00
better test fix
This commit is contained in:
parent
04fc464a52
commit
cc064aafda
@ -40,8 +40,9 @@ describe('Shell command', function() {
|
|||||||
shellCommand.run({cmd: 'echo1 "Hello world"'}, function(err) {
|
shellCommand.run({cmd: 'echo1 "Hello world"'}, function(err) {
|
||||||
expect(err).ok();
|
expect(err).ok();
|
||||||
expect(err).an(Error);
|
expect(err).an(Error);
|
||||||
expect(err.message).contain('echo1:');
|
// messages are slightly different across the OSes
|
||||||
expect(err.message).contain('not found');
|
// e.g. at linux and macos
|
||||||
|
expect(err.message).match(/echo1:.*not found/);
|
||||||
expect(std.err).equal('');
|
expect(std.err).equal('');
|
||||||
expect(std.out).equal('');
|
expect(std.out).equal('');
|
||||||
done();
|
done();
|
||||||
|
Loading…
Reference in New Issue
Block a user