-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGitHubUserStats.spec.js
More file actions
34 lines (30 loc) · 1005 Bytes
/
GitHubUserStats.spec.js
File metadata and controls
34 lines (30 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
describe('GitHub User Stats', function() {
describe('Bootstrapping the project', function() {
it('should have running unit tests', function() {
expect(jasmine).toBeTruthy();
});
it('should have Angular loaded', function() {
expect(angular).toBeTruthy();
});
it('should have an Angular app loaded', function() {
expect(app).toBeTruthy();
expect(app.controller).toBeTruthy();
expect(app.service).toBeTruthy();
});
});
});
describe('main controller', function() {
var ctrl, scope;
beforeEach(function ($rootScope, $controller) {
module('GitHubUserStats');
inject(function($rootScope, $controller) {
scope = $rootScope.$new();
ctrl = $controller('MainCtrl', {
$scope: scope
});
});
});
it('should exist', function() {
expect(ctrl).toBeTruthy();
});
});