Skip to content

Commit

Permalink
chore: fix tests in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fynnfeldpausch committed May 26, 2023
1 parent ca0c38b commit 7a3bc75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions projects/ngx-intl/src/lib/intl-timeago.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export class IntlTimeagoPipe implements PipeTransform, OnDestroy {
const seconds = Math.abs(Math.round((then.getTime() - now.getTime()) / 1000));
const minRelative = _options.minRelative ?? IntlTimeagoPipe.DEFAULT_OPTIONS.minRelative ?? -1;
const maxRelative = _options.maxRelative ?? IntlTimeagoPipe.DEFAULT_OPTIONS.maxRelative ?? Number.MAX_SAFE_INTEGER;

if (seconds < minRelative) {
this.text = _options.now ?? IntlTimeagoPipe.DEFAULT_OPTIONS.now ?? '';
this.update = minRelative - seconds;
Expand Down

0 comments on commit 7a3bc75

Please sign in to comment.