docs(guide/module): fix syntax error and expectation in test example

This commit is contained in:
Mykhailo Kotsur 2012-03-22 20:38:49 +01:00 committed by Igor Minar
parent f04142ea28
commit 5c5b1183c8

View file

@ -232,7 +232,7 @@ describe('myApp', function() {
$provide.value('$window', {
alert: jasmine.createSpy('alert')
});
});
}));
// The inject() will create the injector and inject the greet and
// $window into the tests. The test need not concern itself with
@ -251,7 +251,7 @@ describe('myApp', function() {
});
inject(function(greet) {
greet('World');
expect(alertSpy).toHaveBeenCalledWith('World');
expect(alertSpy).toHaveBeenCalledWith('Hello World!');
});
});
});