Skip to content

Commit

Permalink
test(ngx-utils): fix test case for -almost xx years ago
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlking committed Sep 18, 2019
1 parent 02cb928 commit 92dec7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ describe('FormatTimeInWordsPipe', () => {
expect(pipe.transform(yesterday)).toBe('1 day ago');
}));

it('should return `over 23 years ago` when date is 1995-12-17T03:24:00', inject(
it('should return `almost 24 years ago` when date is 1995-12-17T03:24:00', inject(
[FormatTimeInWordsPipe],
(pipe: FormatTimeInWordsPipe) => {
expect(pipe.transform('1995-12-17T03:24:00')).toBe('over 23 years ago');
expect(pipe.transform('1995-12-17T03:24:00')).toBe('almost 24 years ago');
},
));

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
},
"lint-staged": {
"{apps,libs}/**/*.{ts,json,md,scss,html}": [
"yarn affected:lint --uncommitted --parallel -- --fix",
"yarn affected:lint --uncommitted --parallel --fix",
"yarn format:write --uncommitted",
"git add"
]
Expand Down

0 comments on commit 92dec7a

Please sign in to comment.