Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Not able to use jasmine-expect matchers in protractor #1396

Closed
kumarvarun1252 opened this issue Oct 2, 2014 · 2 comments
Closed

Not able to use jasmine-expect matchers in protractor #1396

kumarvarun1252 opened this issue Oct 2, 2014 · 2 comments

Comments

@kumarvarun1252
Copy link

Hi,

I am trying to use the jasmine-expect matchers in my protractor e2e tests.

For example, jasmine-expect have a matcher to "expect(string).toEndWith(substring)". I have installed jasmine-expect using "npm install jasmine-expect" but I guess protractor or webdriverjs doesn't understand these matchers.

I see "TypeError: Object # has no method 'toEndWith'" this error.
It would be really helpful if we can use jasmine-expect matchers for protractor e2e test verifications.

Thanks,
Varun Mukka

@juliemr
Copy link
Member

juliemr commented Oct 2, 2014

It looks like jasmine-expect only works with Jasmine 2.0. Protractor uses Jasmine 1.3 - see this issue for more info on why it hasn't updated yet: #362

@juliemr juliemr closed this as completed Oct 2, 2014
@JamieMason
Copy link

@juliemr @kumarvarun1252 the jasmine-expect side of this issue should be fixed now in 2.0.0-beta1 via issue JamieMason/Jasmine-Matchers#29

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants