Skip to content

Commit

Permalink
[PLAYER-760] Switching toEqual's to the the more appropriate toBe
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfranco81 committed Apr 10, 2017
1 parent b1ead28 commit 43a486f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/controller-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -604,8 +604,8 @@ OO = {
it('should apply anamorphic CSS fix when ots_stretch_to_output is true', function() {
Html5Skin.onAttributesFetched.call(controllerMock, 'customerUi', attributesParam);
Html5Skin.trySetAnamorphicFixState.call(controllerMock, true);
expect(addClassSpy.callCount).toEqual(1);
expect(removeClassSpy.callCount).toEqual(0);
expect(addClassSpy.callCount).toBe(1);
expect(removeClassSpy.callCount).toBe(0);
});

it('should not apply anamorphic CSS fix when ots_stretch_to_output isn\'t true', function() {
Expand All @@ -615,18 +615,18 @@ OO = {
attributesParam.provider = { 'ots_stretch_to_output': false };
Html5Skin.onAttributesFetched.call(controllerMock, 'customerUi', attributesParam);
Html5Skin.trySetAnamorphicFixState.call(controllerMock, true);
expect(addClassSpy.callCount).toEqual(0);
expect(removeClassSpy.callCount).toEqual(0);
expect(addClassSpy.callCount).toBe(0);
expect(removeClassSpy.callCount).toBe(0);
});

it('should disable anamorphic CSS fix when passing false', function() {
Html5Skin.onAttributesFetched.call(controllerMock, 'customerUi', attributesParam);
Html5Skin.trySetAnamorphicFixState.call(controllerMock, true);
expect(addClassSpy.callCount).toEqual(1);
expect(addClassSpy.callCount).toBe(1);
Html5Skin.onWillPlayAds.call(controllerMock, 'customerUi');
Html5Skin.trySetAnamorphicFixState.call(controllerMock, false);
expect(addClassSpy.callCount).toEqual(1);
expect(removeClassSpy.callCount).toEqual(1);
expect(addClassSpy.callCount).toBe(1);
expect(removeClassSpy.callCount).toBe(1);
});
});

Expand Down

0 comments on commit 43a486f

Please sign in to comment.