Skip to content

JS unit tests fix - use toBeUndefined() instead of toEqual(null) - #11931

Merged
MorrisJobke merged 1 commit into
masterfrom
fix-js-unit-tests
Nov 4, 2014
Merged

MorrisJobke merged 1 commit into
masterfrom
fix-js-unit-tests

Conversation

@MorrisJobke

Copy link
Copy Markdown
Contributor

cc @PVince81 @LukasReschke

This also makes more sense as the value shouldn't be there

Somehow my env is more strict because it doesn't accept undefined to be the same as null

@LukasReschke

Copy link
Copy Markdown
Contributor

Passing locally as well 👍

@PVince81

PVince81 commented Nov 4, 2014

Copy link
Copy Markdown
Contributor

Side note: @MorrisJobke and I have different results on our local envs.
On my env with the exact same karma, jasmine versions, expect(undefined).toEqual(null); succeeds.
But on @MorrisJobke's env it fails.

We still can't explain the discrepancy, but as stated above it is better to fix the test anyway.

@PVince81

PVince81 commented Nov 4, 2014

Copy link
Copy Markdown
Contributor

👍 pass for me as well

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: No new issues

@ghost

ghost commented Nov 4, 2014

Copy link
Copy Markdown

🚀 Test PASSed. 🚀
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/1915/
🚀 Test PASSed. 🚀

MorrisJobke added a commit that referenced this pull request Nov 4, 2014
JS unit tests fix - use toBeUndefined() instead of toEqual(null)
@MorrisJobke
MorrisJobke merged commit f6cf654 into master Nov 4, 2014
@MorrisJobke
MorrisJobke deleted the fix-js-unit-tests branch November 4, 2014 10:38
@PVince81

PVince81 commented Nov 7, 2014

Copy link
Copy Markdown
Contributor

@MorrisJobke can you backport this ? Unit tests fail on stable7 now without this fix. (CC @karlitschek)

@PVince81

PVince81 commented Nov 7, 2014

Copy link
Copy Markdown
Contributor

Actually I'll backport this myself

@PVince81

PVince81 commented Nov 7, 2014

Copy link
Copy Markdown
Contributor

stable7: 32625af

@karlitschek

Copy link
Copy Markdown
Contributor

thanks @PVince81

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants