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

Commit ab90bef

Browse files
Michel Boudreaumboudreau
Michel Boudreau
authored andcommitted
adding strict equality for tests
1 parent 5688e99 commit ab90bef

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/AngularSpec.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -633,15 +633,15 @@ describe('angular', function() {
633633
it('should return empty string when jq is enabled manually via [ng-jq] with empty string', function() {
634634
element.setAttribute('ng-jq', '');
635635
spyOn(document, 'querySelector').andCallFake(function(selector) {
636-
if (selector == '[ng-jq]') return element;
636+
if (selector === '[ng-jq]') return element;
637637
});
638638
expect(jq()).toBe('');
639639
});
640640

641641
it('should return empty string when jq is enabled manually via [data-ng-jq] with empty string', function() {
642642
element.setAttribute('data-ng-jq', '');
643643
spyOn(document, 'querySelector').andCallFake(function(selector) {
644-
if (selector == '[data-ng-jq]') return element;
644+
if (selector === '[data-ng-jq]') return element;
645645
});
646646
expect(jq()).toBe('');
647647
expect(document.querySelector).toHaveBeenCalledWith('[data-ng-jq]');
@@ -650,7 +650,7 @@ describe('angular', function() {
650650
it('should return empty string when jq is enabled manually via [x-ng-jq] with empty string', function() {
651651
element.setAttribute('x-ng-jq', '');
652652
spyOn(document, 'querySelector').andCallFake(function(selector) {
653-
if (selector == '[x-ng-jq]') return element;
653+
if (selector === '[x-ng-jq]') return element;
654654
});
655655
expect(jq()).toBe('');
656656
expect(document.querySelector).toHaveBeenCalledWith('[x-ng-jq]');
@@ -659,7 +659,7 @@ describe('angular', function() {
659659
it('should return empty string when jq is enabled manually via [ng:jq] with empty string', function() {
660660
element.setAttribute('ng:jq', '');
661661
spyOn(document, 'querySelector').andCallFake(function(selector) {
662-
if (selector == '[ng\\:jq]') return element;
662+
if (selector === '[ng\\:jq]') return element;
663663
});
664664
expect(jq()).toBe('');
665665
expect(document.querySelector).toHaveBeenCalledWith('[ng\\:jq]');
@@ -668,7 +668,7 @@ describe('angular', function() {
668668
it('should return "jquery" when jq is enabled manually via [ng-jq] with value "jQuery"', function() {
669669
element.setAttribute('ng-jq', 'jQuery');
670670
spyOn(document, 'querySelector').andCallFake(function(selector) {
671-
if (selector == '[ng-jq]') return element;
671+
if (selector === '[ng-jq]') return element;
672672
});
673673
expect(jq()).toBe('jQuery');
674674
expect(document.querySelector).toHaveBeenCalledWith('[ng-jq]');
@@ -677,7 +677,7 @@ describe('angular', function() {
677677
it('should return "jquery" when jq is enabled manually via [data-ng-jq] with value "jQuery"', function() {
678678
element.setAttribute('data-ng-jq', 'jQuery');
679679
spyOn(document, 'querySelector').andCallFake(function(selector) {
680-
if (selector == '[data-ng-jq]') return element;
680+
if (selector === '[data-ng-jq]') return element;
681681
});
682682
expect(jq()).toBe('jQuery');
683683
expect(document.querySelector).toHaveBeenCalledWith('[data-ng-jq]');
@@ -686,7 +686,7 @@ describe('angular', function() {
686686
it('should return "jquery" when jq is enabled manually via [x-ng-jq] with value "jQuery"', function() {
687687
element.setAttribute('x-ng-jq', 'jQuery');
688688
spyOn(document, 'querySelector').andCallFake(function(selector) {
689-
if (selector == '[x-ng-jq]') return element;
689+
if (selector === '[x-ng-jq]') return element;
690690
});
691691
expect(jq()).toBe('jQuery');
692692
expect(document.querySelector).toHaveBeenCalledWith('[x-ng-jq]');
@@ -695,7 +695,7 @@ describe('angular', function() {
695695
it('should return "jquery" when jq is enabled manually via [ng:jq] with value "jQuery"', function() {
696696
element.setAttribute('ng:jq', 'jQuery');
697697
spyOn(document, 'querySelector').andCallFake(function(selector) {
698-
if (selector == '[ng\\:jq]') return element;
698+
if (selector === '[ng\\:jq]') return element;
699699
});
700700
expect(jq()).toBe('jQuery');
701701
expect(document.querySelector).toHaveBeenCalledWith('[ng\\:jq]');

0 commit comments

Comments
 (0)