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

Commit 5c5b118

Browse files
mkotsurIgorMinar
authored andcommitted
docs(guide/module): fix syntax error and expectation in test example
1 parent f04142e commit 5c5b118

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: docs/content/guide/module.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ describe('myApp', function() {
232232
$provide.value('$window', {
233233
alert: jasmine.createSpy('alert')
234234
});
235-
});
235+
}));
236236

237237
// The inject() will create the injector and inject the greet and
238238
// $window into the tests. The test need not concern itself with
@@ -251,7 +251,7 @@ describe('myApp', function() {
251251
});
252252
inject(function(greet) {
253253
greet('World');
254-
expect(alertSpy).toHaveBeenCalledWith('World');
254+
expect(alertSpy).toHaveBeenCalledWith('Hello World!');
255255
});
256256
});
257257
});

0 commit comments

Comments
 (0)