This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Tests: handle error messages with implicit CST update

  • Loading branch information...
markelog committed Jun 15, 2017
1 parent 44f9b86 commit 38d33a0e455d965106ad3c8948c870f8f4e5dda9
Showing with 2 additions and 2 deletions.
  1. +1 −1 test/specs/js-file.js
  2. +1 −1 test/specs/string-checker.js
View
@@ -43,7 +43,7 @@ describe('js-file', function() {
expect(file.getParseErrors().length).to.equal(1);
var parseError = file.getParseErrors()[0];
expect(parseError.message).to.equal('Assigning to rvalue (2:0)');
expect(parseError.message).to.equal('Invalid left-hand side in postfix operation (2:0)');
expect(parseError.pos).to.equal(1);
expect(parseError.loc).to.be.an('object');
expect(parseError.loc.line).to.equal(2);
@@ -77,7 +77,7 @@ describe('string-checker', function() {
var error = errors.getErrorList()[0];
expect(error.rule).to.equal('parseError');
expect(error.message).to.equal('Unexpected token (1:5)');
expect(error.message).to.equal('Unexpected token, expected ; (1:5)');
expect(error.line).to.equal(1);
expect(error.column).to.equal(5);
});

0 comments on commit 38d33a0

Please sign in to comment.