tldraw/__tests__/__snapshots__/code.test.ts.snap

58 lines
1.1 KiB
Text
Raw Normal View History

2021-06-25 11:01:22 +00:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`selection creates a code control: generated code controls from code 1`] = `Object {}`;
exports[`selection generates shapes: generated rectangle from code 1`] = `
Array [
Object {
"childIndex": 1,
"id": "test-rectangle",
"isAspectRatioLocked": false,
"isGenerated": true,
"isHidden": false,
"isLocked": false,
"name": "Test Rectangle",
"parentId": "page1",
"point": Array [
100,
100,
],
"radius": 2,
"rotation": 0,
"size": Array [
200,
200,
],
"style": Object {
"color": "Red",
"dash": "Dotted",
"isFilled": false,
"size": "Medium",
},
"type": "rectangle",
},
]
`;
exports[`selection updates a code control: data in state after changing control 1`] = `
Object {
"test-number-control": Object {
"id": "test-number-control",
"label": "x",
"step": 1,
"type": "number",
"value": 100,
},
"test-vector-control": Object {
"id": "test-vector-control",
"isNormalized": false,
"label": "size",
"type": "vector",
"value": Array [
0,
0,
],
},
}
`;