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

Commit 726eae4

Browse files
mattlavalleeSomeKittens
authored andcommitted
test(Modules): Adding unit test for bug fix
1 parent a7cf8b3 commit 726eae4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/modules.spec.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ describe('hintModules', function() {
5959
'created and they will overwrite each other.', 2);
6060
});
6161

62+
it('should ignore modules loaded twice if one is being called without parameters', function() {
63+
angular.module('testModule3', []);
64+
angular.module('testModule3');
65+
start();
66+
expect(angular.hint.emit).not.toHaveBeenCalledWith('Modules', 'Multiple modules with name "testModule3" are ' +
67+
'being created and they will overwrite each other.', 2);
68+
});
69+
6270

6371
it('should warn if modules are not named with lowerCamelCase or dotted.segments', function() {
6472
angular.module('testmodule', []);

0 commit comments

Comments
 (0)