mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-14 09:43:12 +00:00
parent
33ab261817
commit
73e1d0054c
1 changed files with 6 additions and 3 deletions
|
|
@ -94,7 +94,6 @@ describe('filter', function() {
|
||||||
|
|
||||||
beforeEach(module('phonecatFilters'));
|
beforeEach(module('phonecatFilters'));
|
||||||
|
|
||||||
|
|
||||||
describe('checkmark', function() {
|
describe('checkmark', function() {
|
||||||
|
|
||||||
it('should convert boolean values to unicode checkmark or cross',
|
it('should convert boolean values to unicode checkmark or cross',
|
||||||
|
|
@ -106,8 +105,12 @@ describe('filter', function() {
|
||||||
});
|
});
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
Note that you need to configure our test injector with the `phonecatFilters` module before any of
|
We must call `beforeEach(module('phonecatFilters'))` before any of
|
||||||
our filter tests execute.
|
our filter tests execute. This call loads our `phonecatFilters` module into the injector
|
||||||
|
for this test run.
|
||||||
|
|
||||||
|
Note that we call the helper function, `inject(function(checkmarkFilter) { ... })`, to get
|
||||||
|
access to the filter that we want to test. See {@link api/angular.mock.inject angular.mock.inject()}.
|
||||||
|
|
||||||
You should now see the following output in the Karma tab:
|
You should now see the following output in the Karma tab:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue