Skip to content

Use jasmine-core 3.4.0 #3969

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 18, 2019
Merged

Use jasmine-core 3.4.0 #3969

merged 4 commits into from
Jun 18, 2019

Conversation

etpinard
Copy link
Contributor

resolves #3368 - getting up-to-speed with the latest version of our test framework, which has two new CLI configs:

  • random, which randomises the test ordering (N.B. jasmine turns this on by default, but we set it to false by default as this would make many of our tests fail)
  • failFast, so we don't need that karma-fail-fast-reporter plugin

About the negateIf commit, see #3368 (comment) for more info.

etpinard added 4 commits June 17, 2019 17:03
N.B. jasmine-core v3 does not allow mutation the
Expectation prototyp
... with a default false, overriding the jasmine v3 default
    which makes a lot of test fail!
@archmoj
Copy link
Contributor

archmoj commented Jun 18, 2019

Excellent.
💃 💃 💃

On another note, I am wondering about the root of this warning (happening on master/here, both locally & using CI)?
Screenshot from 2019-06-17 20-40-05

@alexcjohnson
Copy link
Collaborator

I am wondering about the root of this warning

this is intentional and has been there forever - though it would be nice to silence it! Pretty sure it's this:

Plotly.relayout(gd, 'images[0].source', 'invalidUrl').then(function() {
var newSelection = Plotly.d3.select('image');
expect(newSelection.size()).toBe(0);
}).then(done);

@etpinard
Copy link
Contributor Author

etpinard commented Jun 18, 2019

Pretty sure it's this [that layout_images_test.js test]

Yes, that's the one. But the 404: /invalidUrl message comes from

img.src = d.source;

which is tricky to mock while still testing this handler:

function errorHandler() {
thisImage.remove();
resolve();
}


So, I'll pass. I hope you don't find the 404: /invalidUrl message that annoying. If so, please open an issue.

@etpinard etpinard merged commit 795220f into master Jun 18, 2019
@etpinard etpinard deleted the jasmine-core-3.4.0 branch June 18, 2019 14:24
@etpinard
Copy link
Contributor Author

Fun fact, during the merge commit, all shards in test-jasmine2 and test-jasmine3 passed on the first attempt:

image

🎉

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

Successfully merging this pull request may close these issues.

Adapt jasmine tests for jasmine-core@3
3 participants