Skip to content
This repository has been archived by the owner on Jun 16, 2018. It is now read-only.

Commit

Permalink
fix travis tests (shifted date)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikkertkoppes committed Dec 25, 2014
1 parent 5008e97 commit 6efb5e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/services/ng-scoresSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@ describe('ng-scores',function() {
expect($scores.scores[0].score).toEqual(null);
expect($scores.validationErrors.length).toEqual(1);
});
it('should store the edited date of a score',function() {
it('should store the edited date of a score as string',function() {
var tmp = angular.copy(mockScore);
tmp.edited = new Date(2015,1,7);
$scores.add(tmp);
expect($scores.scores[0].edited).toEqual('Sat Feb 07 2015 00:00:00 GMT+0100 (W. Europe Standard Time)');
expect(typeof $scores.scores[0].edited).toBe('string');
});
});

Expand Down

0 comments on commit 6efb5e2

Please sign in to comment.