Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Apr 22, 2017
1 parent ae69c61 commit 5814a32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.js
Expand Up @@ -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/')
})
})

0 comments on commit 5814a32

Please sign in to comment.