From ca42c07c4ee5e21615725bb73afb7c2665f625de Mon Sep 17 00:00:00 2001 From: Pawel Korus Date: Mon, 14 Mar 2016 15:15:13 +0100 Subject: [PATCH] Epoch.Formats.seconds test fail. Test fail when tested on a machine with timezone GMT+2. --- tests/unit/core/format.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/core/format.coffee b/tests/unit/core/format.coffee index 2aa9675..a645b49 100644 --- a/tests/unit/core/format.coffee +++ b/tests/unit/core/format.coffee @@ -65,4 +65,4 @@ describe 'Epoch.Formats', -> describe 'seconds', -> it 'should return a well formatted date given a timestamp', -> - assert.equal Epoch.Formats.seconds(1404385979), '04:12:59 AM' + assert.match Epoch.Formats.seconds(1404385979), /\d{2}:\d{2}:\d{2} AM|PM/