Xotabu4/jasmine-protractor-matchers

Missing space before the word 'instead' and after the comma in wrapForJasmine function error message

wasmithee opened this issue · 0 comments

https://github.com/Xotabu4/jasmine-protractor-matchers/blob/master/index.js#L51

Here is what the error message looks like currently:
Failed: Matcher expects to be applied to ElementFinder object,but got:undefinedinstead

It should be as follows:
Failed: Matcher expected to be applied to an ElementFinder object, but got 'undefined' instead

The following should work:

if (!elementFinder) {
    throw new Error('Matcher expected to be applied to an ElementFinder object, ' +
    'but got \'' + elementFinder + '\' instead.');
}