Skip to content

Commit 971f9b8

Browse files
committed
test(growlNotifications): add unit tests for growlNotifications module
1 parent f473b2b commit 971f9b8

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
'use strict';
2+
3+
describe('growlNotifications', function() {
4+
5+
var module;
6+
var dependencies;
7+
dependencies = [];
8+
9+
var hasModule = function(module) {
10+
return dependencies.indexOf(module) >= 0;
11+
};
12+
13+
beforeEach(function() {
14+
15+
// Get module
16+
module = angular.module('growlNotifications');
17+
dependencies = module.requires;
18+
});
19+
20+
it('should load config module', function() {
21+
expect(hasModule('growlNotifications.config')).toBeTruthy();
22+
});
23+
24+
25+
it('should load filters module', function() {
26+
expect(hasModule('growlNotifications.filters')).toBeTruthy();
27+
});
28+
29+
30+
31+
it('should load directives module', function() {
32+
expect(hasModule('growlNotifications.directives')).toBeTruthy();
33+
});
34+
35+
36+
37+
it('should load services module', function() {
38+
expect(hasModule('growlNotifications.services')).toBeTruthy();
39+
});
40+
41+
42+
});

0 commit comments

Comments
 (0)