Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #216 from simon-thorpe/master
Browse files Browse the repository at this point in the history
add phantomjs as dev dependency for karma
  • Loading branch information
urish committed Jan 25, 2016
2 parents 142d072 + 57df467 commit 0f223cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"grunt-karma": "0.12.1",
"grunt-ngdocs": "0.2.9",
"jasmine-core": "2.3.4",
"phantomjs": "^1.9.19",
"karma": "0.13.19",
"karma-coverage": "0.5.3",
"karma-jasmine": "0.3.6",
Expand Down
2 changes: 1 addition & 1 deletion tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe('module angularMoment', function () {
expect(element.text()).toBe('2 hours ago');
});

it('should change the text of the div to "one year ago" when given a date one year ago', function () {
it('should change the text of the div to "a year ago" when given a date one year ago', function () {
var today = new Date();
$rootScope.testDate = new Date(today.getFullYear() - 1, today.getMonth(), today.getDate());
var element = angular.element('<div am-time-ago="testDate"></div>');
Expand Down

0 comments on commit 0f223cf

Please sign in to comment.