File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,6 @@ describe('filter', function() {
94
94
95
95
beforeEach(module('phonecatFilters'));
96
96
97
-
98
97
describe('checkmark', function() {
99
98
100
99
it('should convert boolean values to unicode checkmark or cross',
@@ -106,8 +105,12 @@ describe('filter', function() {
106
105
});
107
106
</pre>
108
107
109
- Note that you need to configure our test injector with the `phonecatFilters` module before any of
110
- our filter tests execute.
108
+ We must call `beforeEach(module('phonecatFilters'))` before any of
109
+ our filter tests execute. This call loads our `phonecatFilters` module into the injector
110
+ for this test run.
111
+
112
+ Note that we call the helper function, `inject(function(checkmarkFilter) { ... })`, to get
113
+ access to the filter that we want to test. See {@link api/angular.mock.inject angular.mock.inject()}.
111
114
112
115
You should now see the following output in the Karma tab:
113
116
You can’t perform that action at this time.
0 commit comments