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

Commit 5764ed3

Browse files
committed
Revert "Github issue #919, Few Unit tests failing after angular 1.6.x release"
This reverts commit 85bb85c.
1 parent 6033155 commit 5764ed3

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

app/my-dashboard/header-dashboard/header-dashboard.spec.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ const mockData = require('../../../tests/test-helpers/mock-data')
33

44
/* jshint -W117, -W030 */
55
describe('Header Dashboard Controller', function() {
6+
var identity
67
var profile = mockData.getMockProfile()
8+
var stats = mockData.getMockStats()
9+
var financials = mockData.getMockUserFinancials()
710

811
beforeEach(function() {
912
bard.appModule('topcoder')
@@ -12,6 +15,13 @@ describe('Header Dashboard Controller', function() {
1215
'$rootScope',
1316
'$q',
1417
'Helpers')
18+
19+
identity = function() {
20+
return {
21+
handle: 'albertwang',
22+
userId: 123456
23+
}
24+
}
1525
})
1626

1727
bard.verifyNoOutstandingHttpRequests()

app/services/externalAccounts.service.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ describe('ExternalAccount Service', function() {
240240
expect(resp).to.exist
241241
expect(resp.status).to.exist.to.equal('failed')
242242
})
243-
$rootScope.$apply()
243+
$rootScope.$apply();
244244
})
245245

246246
})

0 commit comments

Comments
 (0)