Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
hiro5id committed Dec 10, 2019
1 parent b543d84 commit b0c15e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/logger.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,13 @@ describe('logger', () => {
outputText[0] = stripProperty(outputText[0],"@logCallStack");
outputText[0] = stripTimeStamp(outputText[0]);

expect(JSON.parse(outputText[0])["@filename"]).contains("/test/logger.test");

outputText[0] = stripProperty(outputText[0],"@filename");

expect(JSON.parse(outputText[0])).eql({
"level": "info",
"message": "this is a test - more messages",
"@filename": "/test/logger.test.ts",
"a": "stuff-a",
"b": "stuff-b",
"c": "stuff-c"
Expand Down

0 comments on commit b0c15e6

Please sign in to comment.