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

Add karma config update reference to step 11 of the tutorial #7651

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/content/tutorial/step_11.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,20 @@ describe('PhoneCat controllers', function() {
});
```

We also need to update the Karma config file with angular-resource in order for the unit tests to work.
__`test/karma.conf.js`:__

```js
files : [
'app/bower_components/angular/angular.js',
'app/bower_components/angular-route/angular-route.js',
'app/bower_components/angular-resource/angular-resource.js',
'app/bower_components/angular-mocks/angular-mocks.js',
'app/js/**/*.js',
'test/unit/**/*.js'
],
```

You should now see the following output in the Karma tab:

<pre>Chrome 22.0: Executed 4 of 4 SUCCESS (0.038 secs / 0.01 secs)</pre>
Expand Down