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

Commit 6033155

Browse files
committed
Revert "Temporarily removed some unit tests to fix build"
This reverts commit df00f40.
1 parent 8669a7f commit 6033155

File tree

3 files changed

+499
-499
lines changed

3 files changed

+499
-499
lines changed
Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
1-
///*eslint no-undef:0*/
2-
//const mockData = require('../../../tests/test-helpers/mock-data')
3-
//
4-
///* jshint -W117, -W030 */
5-
//describe('Header Dashboard Controller', function() {
6-
// var profile = mockData.getMockProfile()
7-
//
8-
// beforeEach(function() {
9-
// bard.appModule('topcoder')
10-
// bard.inject(this,
11-
// '$controller',
12-
// '$rootScope',
13-
// '$q',
14-
// 'Helpers')
15-
// })
16-
//
17-
// bard.verifyNoOutstandingHttpRequests()
18-
//
19-
// describe('inialization', function() {
20-
// var controller = null
21-
// beforeEach( function(){
22-
// controller = $controller('HeaderDashboardController', {
23-
// profile: profile
24-
// })
25-
// $rootScope.$apply()
26-
// })
27-
//
28-
// it('variables should be initialized to correct value', function() {
29-
// expect(controller.profile).to.exist
30-
// expect(controller.profile.handle).to.equal('albertwang')
31-
// })
32-
// })
33-
//
34-
// describe('inialization with null profile', function() {
35-
// var controller = null
36-
// beforeEach( function(){
37-
// controller = $controller('HeaderDashboardController', {
38-
// profile: null
39-
// })
40-
// $rootScope.$apply()
41-
// })
42-
//
43-
// it('variables should be initialized to correct value', function() {
44-
// expect(controller.profile).to.be.null
45-
// })
46-
// })
47-
//
48-
//})
1+
/*eslint no-undef:0*/
2+
const mockData = require('../../../tests/test-helpers/mock-data')
3+
4+
/* jshint -W117, -W030 */
5+
describe('Header Dashboard Controller', function() {
6+
var profile = mockData.getMockProfile()
7+
8+
beforeEach(function() {
9+
bard.appModule('topcoder')
10+
bard.inject(this,
11+
'$controller',
12+
'$rootScope',
13+
'$q',
14+
'Helpers')
15+
})
16+
17+
bard.verifyNoOutstandingHttpRequests()
18+
19+
describe('inialization', function() {
20+
var controller = null
21+
beforeEach( function(){
22+
controller = $controller('HeaderDashboardController', {
23+
profile: profile
24+
})
25+
$rootScope.$apply()
26+
})
27+
28+
it('variables should be initialized to correct value', function() {
29+
expect(controller.profile).to.exist
30+
expect(controller.profile.handle).to.equal('albertwang')
31+
})
32+
})
33+
34+
describe('inialization with null profile', function() {
35+
var controller = null
36+
beforeEach( function(){
37+
controller = $controller('HeaderDashboardController', {
38+
profile: null
39+
})
40+
$rootScope.$apply()
41+
})
42+
43+
it('variables should be initialized to correct value', function() {
44+
expect(controller.profile).to.be.null
45+
})
46+
})
47+
48+
})

0 commit comments

Comments
 (0)