Skip to content

Commit

Permalink
Fix unterminated regexp group in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Jul 15, 2015
1 parent cbf7f97 commit 563e5c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typescript-node.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('ts-node', function () {

it('should be able to ignore errors', function (done) {
exec(`node ${BIN_PATH} --ignoreWarnings 2345 -e "import * as m from './tests/module';console.log(m.example(123))"`, function (err) {
expect(err.message).to.match(/TypeError: (?:(?:undefined|foo\.toUpperCase) is not a function|.*has no method \'toUpperCase\'/)
expect(err.message).to.match(/TypeError: (?:(?:undefined|foo\.toUpperCase) is not a function|.*has no method \'toUpperCase\')/)

return done()
})
Expand Down

0 comments on commit 563e5c8

Please sign in to comment.