Skip to content

Commit

Permalink
test: fix amLocal tests to pass regardless of timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
urish committed Aug 21, 2017
1 parent d489a27 commit e7a9ceb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/local.pipe.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ describe('LocalPipe', () => {
it('should be pipeable to amDateFormat', () => {
const amDateFormat = new DateFormatPipe();
const datetimeString = '2015-12-31T23:00:00.000-15:00';
const momentFormatString = 'YYYY-MM-DD';
const momentFormatString = 'YYYY-MM';
const localOutput = localPipe.transform(datetimeString);
expect(amDateFormat.transform(localOutput, momentFormatString)).toEqual('2016-01-01');
expect(amDateFormat.transform(localOutput, momentFormatString)).toEqual('2016-01');
});

});
Expand Down

0 comments on commit e7a9ceb

Please sign in to comment.