From 5814a32073955093f8752637045c072eaad5bdb1 Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Sun, 23 Apr 2017 00:10:04 +0200 Subject: [PATCH] Fix test --- test/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/index.js b/test/index.js index 64f70da..21d246a 100644 --- a/test/index.js +++ b/test/index.js @@ -16,7 +16,7 @@ describe('regexgen-cli', function () { }) it('get input from stdin', function () { - const output = exec(cli, {encoding: 'utf8', input: JSON.stringify(['foo', 'bar'])}) - output.should.be.equal('/bar|foo/') + const output = exec(cli, {encoding: 'utf8', input: 'foobar\n'}) + output.should.be.equal('/foobar/') }) })