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

Commit

Permalink
docs(guide/module): fix syntax error and expectation in test example
Browse files Browse the repository at this point in the history
  • Loading branch information
mkotsur authored and IgorMinar committed Mar 26, 2012
1 parent f04142e commit 5c5b118
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/guide/module.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -251,7 +251,7 @@ describe('myApp', function() {
});
inject(function(greet) {
greet('World');
expect(alertSpy).toHaveBeenCalledWith('World');
expect(alertSpy).toHaveBeenCalledWith('Hello World!');
});
});
});
Expand Down

0 comments on commit 5c5b118

Please sign in to comment.