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

Commit 9fb6c5d

Browse files
committed
Fixed broken tests
1 parent 77e0af2 commit 9fb6c5d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/profile/profile.controller.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ describe('Profile Controller', function() {
2727
getUserHandleColor: function() {
2828
return 'something';
2929
},
30-
getRanks: ProfileService.getRanks
30+
getRanks: ProfileService.getRanks,
31+
getTracks: function() { return ['DEVELOP']; }
3132
};
3233
// mock user api
3334
sinon.stub(userService, 'getV2UserProfile', function() {

app/services/profile.service.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe('Profile Service', function() {
5858

5959
it('should return a user\'s tracks', function() {
6060
var tracks = service.getTracks(mockStats);
61-
expect(tracks.length).to.be.equal(3);
61+
expect(tracks.length).to.be.equal(4);
6262
});
6363

6464
it('should return subtracks', function() {

0 commit comments

Comments
 (0)