Skip to content

Commit 6cbdaa4

Browse files
authored
[Search] Repurposed checkAll test. #1117
Changed test to ensure checkAll and it's appropriate filter string are set whenever checkAll is changed. Removed redundant line checking for a filter string of 'NONE' as this is no longer a possibility.
1 parent 702ebbd commit 6cbdaa4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: platform/search/test/controllers/SearchMenuControllerSpec.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,15 @@ define(
7676
expect(mockScope.ngModel.filtersString).not.toEqual('');
7777
});
7878

79-
it("changing checkAll status updates the filter string", function () {
79+
it("changing checkAll status sets checkAll to true", function () {
8080
controller.checkAll();
81+
expect(mockScope.ngModel.checkAll).toEqual(true);
8182
expect(mockScope.ngModel.filtersString).toEqual('');
8283

8384
mockScope.ngModel.checkAll = false;
8485

8586
controller.checkAll();
87+
expect(mockScope.ngModel.checkAll).toEqual(true);
8688
expect(mockScope.ngModel.filtersString).toEqual('');
8789
});
8890

@@ -117,7 +119,6 @@ define(
117119

118120
controller.updateOptions();
119121

120-
expect(mockScope.ngModel.filtersString).not.toEqual('NONE');
121122
expect(mockScope.ngModel.filtersString).not.toEqual('');
122123
});
123124
});

0 commit comments

Comments
 (0)