better test fix

This commit is contained in:
oleg 2015-06-13 22:41:37 +03:00
parent 04fc464a52
commit cc064aafda

View File

@ -40,8 +40,9 @@ describe('Shell command', function() {
shellCommand.run({cmd: 'echo1 "Hello world"'}, function(err) {
expect(err).ok();
expect(err).an(Error);
expect(err.message).contain('echo1:');
expect(err.message).contain('not found');
// messages are slightly different across the OSes
// e.g. at linux and macos
expect(err.message).match(/echo1:.*not found/);
expect(std.err).equal('');
expect(std.out).equal('');
done();