Skip to content

Commit 253a3fa

Browse files
MFedMFed
MFed
authored and
MFed
committed
fixing timezone problem in annotations test.
1 parent dbdcaac commit 253a3fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/jasmine/tests/annotations_test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require('@src/plotly');
22
var Annotations = require('@src/components/annotations');
3+
var Dates = require('@src/lib/dates');
34

45
describe('Test annotations', function() {
56
'use strict';
@@ -24,7 +25,7 @@ describe('Test annotations', function() {
2425

2526
Annotations.supplyLayoutDefaults(annotationIn, annotationOut);
2627

27-
expect(annotationIn.annotations[0].ax).toEqual(1088654400000);
28+
expect(annotationIn.annotations[0].ax).toEqual(Dates.dateTime2ms('2004-07-01'));
2829
});
2930
});
3031
});

0 commit comments

Comments
 (0)