From cc064aafdac5dd07a501741294806dd6bc058329 Mon Sep 17 00:00:00 2001 From: oleg Date: Sat, 13 Jun 2015 22:41:37 +0300 Subject: [PATCH] better test fix --- test/commands/shell.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/commands/shell.js b/test/commands/shell.js index 24de425..751ccad 100644 --- a/test/commands/shell.js +++ b/test/commands/shell.js @@ -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();