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:
Seth Stone 2014-01-11 11:33:22 -06:00 committed by Igor Minar
parent f4a4f42abb
commit c3ab915d2e

View file

@ -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.