mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-25 02:18:20 +03:00
521 lines
7.5 KiB
Text
521 lines
7.5 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`<HorizontalBarChart /> renders chart with expected canvas 1`] = `
|
|
Array [
|
|
Object {
|
|
"props": Object {
|
|
"a": 1,
|
|
"b": 0,
|
|
"c": 0,
|
|
"d": 1,
|
|
"e": 0,
|
|
"f": 0,
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "setTransform",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"value": "12px \\"Helvetica Neue\\", 'Helvetica', 'Arial', sans-serif",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "font",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"text": "foo",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "measureText",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"value": "12px \\"Helvetica Neue\\", 'Helvetica', 'Arial', sans-serif",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "font",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"text": "bar",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "measureText",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"value": "12px \\"Helvetica Neue\\", 'Helvetica', 'Arial', sans-serif",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "font",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"value": "12px \\"Helvetica Neue\\", 'Helvetica', 'Arial', sans-serif",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "font",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"text": "0",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "measureText",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"value": "12px \\"Helvetica Neue\\", 'Helvetica', 'Arial', sans-serif",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "font",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"text": "500",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "measureText",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"value": "12px \\"Helvetica Neue\\", 'Helvetica', 'Arial', sans-serif",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "font",
|
|
},
|
|
]
|
|
`;
|
|
|
|
exports[`<HorizontalBarChart /> renders chart with expected canvas 2`] = `
|
|
Array [
|
|
Object {
|
|
"props": Object {
|
|
"a": 1,
|
|
"b": 0,
|
|
"c": 0,
|
|
"d": 1,
|
|
"e": 0,
|
|
"f": 0,
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "setTransform",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"value": "12px \\"Helvetica Neue\\", 'Helvetica', 'Arial', sans-serif",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "font",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"text": "one",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "measureText",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"value": "12px \\"Helvetica Neue\\", 'Helvetica', 'Arial', sans-serif",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "font",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"text": "two",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "measureText",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"value": "12px \\"Helvetica Neue\\", 'Helvetica', 'Arial', sans-serif",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "font",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"value": "12px \\"Helvetica Neue\\", 'Helvetica', 'Arial', sans-serif",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "font",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"text": "0",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "measureText",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"value": "12px \\"Helvetica Neue\\", 'Helvetica', 'Arial', sans-serif",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "font",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"text": "200,000",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "measureText",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"value": "12px \\"Helvetica Neue\\", 'Helvetica', 'Arial', sans-serif",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "font",
|
|
},
|
|
]
|
|
`;
|
|
|
|
exports[`<HorizontalBarChart /> renders chart with expected canvas 3`] = `
|
|
Array [
|
|
Object {
|
|
"props": Object {
|
|
"a": 1,
|
|
"b": 0,
|
|
"c": 0,
|
|
"d": 1,
|
|
"e": 0,
|
|
"f": 0,
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "setTransform",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"value": "12px \\"Helvetica Neue\\", 'Helvetica', 'Arial', sans-serif",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "font",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"text": "one",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "measureText",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"value": "12px \\"Helvetica Neue\\", 'Helvetica', 'Arial', sans-serif",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "font",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"text": "two",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "measureText",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"value": "12px \\"Helvetica Neue\\", 'Helvetica', 'Arial', sans-serif",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "font",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"text": "max",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "measureText",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"value": "12px \\"Helvetica Neue\\", 'Helvetica', 'Arial', sans-serif",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "font",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"value": "12px \\"Helvetica Neue\\", 'Helvetica', 'Arial', sans-serif",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "font",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"text": "0",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "measureText",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"value": "12px \\"Helvetica Neue\\", 'Helvetica', 'Arial', sans-serif",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "font",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"text": "200,000",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "measureText",
|
|
},
|
|
Object {
|
|
"props": Object {
|
|
"value": "12px \\"Helvetica Neue\\", 'Helvetica', 'Arial', sans-serif",
|
|
},
|
|
"transform": Array [
|
|
1,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
],
|
|
"type": "font",
|
|
},
|
|
]
|
|
`;
|