Skip to content

Commit

Permalink
Merge pull request #4275 from kazuhitoyokoi/dev-fixtest4jsonnode
Browse files Browse the repository at this point in the history
Fix test cases of JSON node
  • Loading branch information
knolleary committed Aug 14, 2023
2 parents 97470e9 + 72b22a4 commit 04aa489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/nodes/core/parsers/70-JSON_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ describe('JSON node', function() {
});
logEvents.should.have.length(1);
logEvents[0][0].should.have.a.property('msg');
logEvents[0][0].msg.should.startWith("Unexpected token o");
logEvents[0][0].msg.should.match(/^Unexpected token (o|'o')/);
logEvents[0][0].should.have.a.property('level',helper.log().ERROR);
done();
} catch(err) { done(err) }
Expand All @@ -199,7 +199,7 @@ describe('JSON node', function() {
});
logEvents.should.have.length(1);
logEvents[0][0].should.have.a.property('msg');
logEvents[0][0].msg.should.startWith("Unexpected token o");
logEvents[0][0].msg.should.match(/^Unexpected token (o|'o')/);
logEvents[0][0].should.have.a.property('level',helper.log().ERROR);
done();
} catch(err) { done(err) }
Expand Down

0 comments on commit 04aa489

Please sign in to comment.