mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
docs(tutorial): add missing beforeEach(module()) to test
Test snippet was missing this necessary statement that was present in the sample code. Closes #5743
This commit is contained in:
parent
f4a4f42abb
commit
c3ab915d2e
1 changed files with 3 additions and 0 deletions
|
|
@ -170,6 +170,9 @@ describe('PhoneCat controllers', function() {
|
||||||
describe('PhoneListCtrl', function(){
|
describe('PhoneListCtrl', function(){
|
||||||
var scope, ctrl, $httpBackend;
|
var scope, ctrl, $httpBackend;
|
||||||
|
|
||||||
|
// Load our app module definition before each test.
|
||||||
|
beforeEach(module('phonecatApp'));
|
||||||
|
|
||||||
// The injector ignores leading and trailing underscores here (i.e. _$httpBackend_).
|
// The injector ignores leading and trailing underscores here (i.e. _$httpBackend_).
|
||||||
// This allows us to inject a service but then attach it to a variable
|
// This allows us to inject a service but then attach it to a variable
|
||||||
// with the same name as the service.
|
// with the same name as the service.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue