Reputation: 31
I'm writing test in TestCafe and I should check, that the field for typing is empty. I'm doing it using eql assertion
.expect(instanceQuery.resultField.value).eql('')
But I'm getting an error: AssertionError: expected ' ' to deeply equal ' '
Upvotes: 0
Views: 1066
Reputation: 48
When I copy/paste your error message in a console, I get empty space characters, and the eql assertion expects an empty string.
Sometimes it happens that when you copy stuff to/from the console you get different space characters. Make sure you type yourself the empty string.
You can try it out here: sandbox
Upvotes: 3