Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 233f47b

Browse files
committed
chore($parse): make sure no one changes .toEqual(-0) to .toBe(-0)
1 parent 4210405 commit 233f47b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: test/ng/parseSpec.js

+2
Original file line numberDiff line numberDiff line change
@@ -1867,6 +1867,8 @@ describe('parser', function() {
18671867
expect(scope.$eval('+\'1\'')).toEqual(+'1');
18681868
expect(scope.$eval('-\'1\'')).toEqual(-'1');
18691869
expect(scope.$eval('+undefined')).toEqual(0);
1870+
1871+
// Note: don't change toEqual to toBe as toBe collapses 0 & -0.
18701872
expect(scope.$eval('-undefined')).toEqual(-0);
18711873
expect(scope.$eval('+null')).toEqual(+null);
18721874
expect(scope.$eval('-null')).toEqual(-null);

0 commit comments

Comments
 (0)