Skip to content

Commit 5a30340

Browse files
committed
fix: Update mocks to use specific date strings
1 parent 21da158 commit 5a30340

2 files changed

Lines changed: 22 additions & 22 deletions

File tree

test/image/mocks/axes_breaks.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,35 +74,35 @@
7474
"shapes": [
7575
{
7676
"type": "rect",
77-
"y0": 11,
78-
"y1": 89,
77+
"y0": "1970-01-01 00:00:00.011",
78+
"y1": "1970-01-01 00:00:00.089",
7979
"yref": "y2",
8080
"x0": 0.56,
8181
"x1": 1,
8282
"xref": "paper"
8383
},
8484
{
8585
"type": "rect",
86-
"y0": 101,
87-
"y1": 189,
86+
"y0": "1970-01-01 00:00:00.101",
87+
"y1": "1970-01-01 00:00:00.189",
8888
"yref": "y2",
8989
"x0": 0.56,
9090
"x1": 1,
9191
"xref": "paper"
9292
},
9393
{
9494
"type": "rect",
95-
"x0": 11,
96-
"x1": 89,
95+
"x0": "1970-01-01 00:00:00.011",
96+
"x1": "1970-01-01 00:00:00.089",
9797
"xref": "x4",
9898
"y0": 0,
9999
"y1": 0.5,
100100
"yref": "paper"
101101
},
102102
{
103103
"type": "rect",
104-
"x0": 101,
105-
"x1": 189,
104+
"x0": "1970-01-01 00:00:00.101",
105+
"x1": "1970-01-01 00:00:00.189",
106106
"xref": "x4",
107107
"y0": 0,
108108
"y1": 0.5,

test/image/mocks/domain_ref_axis_types.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
{
1818
"type": "bar",
19-
"x": [0, 86400000, 172800000, 259200000],
19+
"x": ["1970-01-01", "1970-01-02", "1970-01-03", "1970-01-04"],
2020
"xaxis": "x3",
2121
"y": [3, 1, 6, 10],
2222
"yaxis": "y3"
@@ -56,7 +56,7 @@
5656
"type": "bar",
5757
"x": [3, 1, 6, 10],
5858
"xaxis": "x8",
59-
"y": [0, 86400000, 172800000, 259200000],
59+
"y": ["1970-01-01", "1970-01-02", "1970-01-03", "1970-01-04"],
6060
"yaxis": "y8"
6161
},
6262
{
@@ -237,17 +237,17 @@
237237
},
238238
{
239239
"type": "line",
240-
"x0": 172800000,
241-
"x1": 172800000,
240+
"x0": "1970-01-03",
241+
"x1": "1970-01-03",
242242
"xref": "x3",
243243
"y0": 0,
244244
"y1": 1,
245245
"yref": "y3 domain"
246246
},
247247
{
248248
"type": "line",
249-
"x0": 259200000,
250-
"x1": 259200000,
249+
"x0": "1970-01-04",
250+
"x1": "1970-01-04",
251251
"xref": "x3",
252252
"y0": 0,
253253
"y1": 1,
@@ -264,8 +264,8 @@
264264
},
265265
{
266266
"type": "rect",
267-
"x0": 0,
268-
"x1": 86400000,
267+
"x0": "1970-01-01",
268+
"x1": "1970-01-02",
269269
"xref": "x3",
270270
"y0": 0,
271271
"y1": 1,
@@ -465,17 +465,17 @@
465465
"x0": 0,
466466
"x1": 1,
467467
"xref": "x8 domain",
468-
"y0": 172800000,
469-
"y1": 172800000,
468+
"y0": "1970-01-03",
469+
"y1": "1970-01-03",
470470
"yref": "y8"
471471
},
472472
{
473473
"type": "line",
474474
"x0": 0,
475475
"x1": 1,
476476
"xref": "x8 domain",
477-
"y0": 259200000,
478-
"y1": 259200000,
477+
"y0": "1970-01-04",
478+
"y1": "1970-01-04",
479479
"yref": "y8"
480480
},
481481
{
@@ -492,8 +492,8 @@
492492
"x0": 0,
493493
"x1": 1,
494494
"xref": "x8 domain",
495-
"y0": 0,
496-
"y1": 86400000,
495+
"y0": "1970-01-01",
496+
"y1": "1970-01-02",
497497
"yref": "y8"
498498
},
499499
{

0 commit comments

Comments
 (0)