Merge pull request #4275 from kazuhitoyokoi/dev-fixtest4jsonnode

Fix test cases of JSON node
This commit is contained in:
Nick O'Leary 2023-08-14 14:51:02 +01:00 committed by GitHub
commit 04aa4897fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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) }
@ -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) }