Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 72e4654

Browse files
committed
test(filter.date): fix e2e test to pass on different time zones
1 parent 9dea9de commit 72e4654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/filters.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ var NUMBER_STRING = /^\d+$/;
365365
<doc:scenario>
366366
it('should format date', function(){
367367
expect(binding("1288323623006 | date:'medium'")).
368-
toMatch(/Oct 2\d, 2010 \d{1,2}:\d{2}:\d{2} pm/);
368+
toMatch(/Oct 2\d, 2010 \d{1,2}:\d{2}:\d{2} (am|pm)/);
369369
expect(binding("1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'")).
370370
toMatch(/2010\-10\-2\d \d{2}:\d{2}:\d{2} \-?\d{4}/);
371371
expect(binding("'1288323623006' | date:'MM/dd/yyyy @ h:mma'")).

0 commit comments

Comments
 (0)