Xotabu4/jasmine-protractor-matchers

More cleaner error message when passing undefined instead element to matcher

Xotabu4 opened this issue · 1 comments

Now error is default error of attempt to use something on undefined object:

  Message:
    Failed: Cannot read property 'ptor_' of undefined
  Stack:
    TypeError: Cannot read property 'ptor_' of undefined
        at compare (/Users/wsmithee/WebstormProjects/e2e-poc/node_modules/jasmine-protractor-matchers/index.js:27:27)
  • Should be check of passed element, that it is defined, and can be used.

Fixed in 1.0.0