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

Commit 0074ab6

Browse files
author
Nick Litwin
committed
Check actual domain
1 parent 85426e8 commit 0074ab6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/my-challenges/my-challenges.spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* jshint -W117, -W030 */
22
describe('My Challenges Controller', function() {
33
var controller;
4+
var domain;
45
var authService, challengeService, userService;
56
var marathons = mockData.getMockMarathons();
67
var challenges = mockData.getMockiOSChallenges();
@@ -22,6 +23,7 @@ describe('My Challenges Controller', function() {
2223
getToken: function() { return "v3Token"; }
2324
});
2425

26+
domain = CONSTANTS.domain;
2527
challengeService = ChallengeService;
2628
authService = TcAuthService;
2729
userService = UserService;
@@ -67,7 +69,7 @@ describe('My Challenges Controller', function() {
6769
});
6870

6971
it('vm.domain should exist', function() {
70-
expect(myChallenges.domain).to.exist;
72+
expect(myChallenges.domain).to.equal(domain);
7173
});
7274

7375
it('vm.userHasChallenges should be initialized to default value', function() {

0 commit comments

Comments
 (0)