0

I have a Jasmine check point to check the expect error message, and when the check point was failed, I only get the following message:

Error: Failed expectation

Question is, is there any configuration to let jasmine output the actual message?

expect(messageInfo).toContain("unauthorized");

luffy
  • 11
  • 1
  • Does this answer your question? [Print message on expect() assert failure](https://stackoverflow.com/questions/23251887/print-message-on-expect-assert-failure) – Sergey Pleshakov Mar 25 '20 at 13:48
  • There are two ways, if you're on protractor 6 then look for `.withContext()`, else second argument after the matcher – Sergey Pleshakov Mar 25 '20 at 13:49

0 Answers0