feat: improve hotkeys functionality and resolve related issues #1094
Annotations
9 errors
Run tests
@data-story/ui#test: command (/home/runner/work/data-story/data-story/packages/ui) yarn run test exited (1)
|
Run tests:
packages/ui/src/components/DataStory/getNodesWithNewSelection.test.ts#L6
AssertionError: expected undefined to match object []
- Expected:
Array []
+ Received:
undefined
❯ src/components/DataStory/getNodesWithNewSelection.test.ts:6:46
|
Run tests:
packages/ui/src/components/DataStory/getNodesWithNewSelection.test.ts#L19
AssertionError: expected { id: '1', …(2) } to match object [ { id: '1', …(2) }, …(2) ]
- Expected:
Array [
Object {
"id": "1",
"position": Object {
"x": 1,
"y": 1,
},
"selected": true,
},
Object {
"id": "2",
"position": Object {
"x": 2,
"y": 2,
},
"selected": false,
},
Object {
"id": "3",
"position": Object {
"x": 3,
"y": 3,
},
"selected": false,
},
]
+ Received:
Object {
"id": "1",
"position": Object {
"x": 1,
"y": 1,
},
"selected": true,
}
❯ src/components/DataStory/getNodesWithNewSelection.test.ts:19:49
|
Run tests:
packages/ui/src/components/DataStory/getNodesWithNewSelection.test.ts#L33
AssertionError: expected null to match object [ { id: '1', …(2) }, …(2) ]
- Expected:
Array [
Object {
"id": "1",
"position": Object {
"x": 1,
"y": 1,
},
"selected": true,
},
Object {
"id": "2",
"position": Object {
"x": 2,
"y": 2,
},
"selected": false,
},
Object {
"id": "3",
"position": Object {
"x": 3,
"y": 3,
},
"selected": false,
},
]
+ Received:
null
❯ src/components/DataStory/getNodesWithNewSelection.test.ts:33:51
|
Run tests:
packages/ui/src/components/DataStory/getNodesWithNewSelection.test.ts#L47
AssertionError: expected { id: '1', …(2) } to match object [ { id: '1', …(2) }, …(2) ]
- Expected:
Array [
Object {
"id": "1",
"position": Object {
"x": 1,
"y": 1,
},
"selected": true,
},
Object {
"id": "2",
"position": Object {
"x": 2,
"y": 2,
},
"selected": false,
},
Object {
"id": "3",
"position": Object {
"x": 3,
"y": 3,
},
"selected": false,
},
]
+ Received:
Object {
"id": "1",
"position": Object {
"x": 1,
"y": 1,
},
"selected": true,
}
❯ src/components/DataStory/getNodesWithNewSelection.test.ts:47:49
|
Run tests:
packages/ui/src/components/DataStory/getNodesWithNewSelection.test.ts#L61
AssertionError: expected { id: '3', …(2) } to match object [ { id: '1', …(2) }, …(2) ]
- Expected:
Array [
Object {
"id": "1",
"position": Object {
"x": 1,
"y": 1,
},
"selected": false,
},
Object {
"id": "2",
"position": Object {
"x": 2,
"y": 2,
},
"selected": false,
},
Object {
"id": "3",
"position": Object {
"x": 3,
"y": 3,
},
"selected": true,
},
]
+ Received:
Object {
"id": "3",
"position": Object {
"x": 3,
"y": 3,
},
"selected": true,
}
❯ src/components/DataStory/getNodesWithNewSelection.test.ts:61:51
|
Run tests:
packages/ui/src/components/DataStory/getNodesWithNewSelection.test.ts#L75
AssertionError: expected { id: '1', …(2) } to match object [ { id: '1', …(2) }, …(2) ]
- Expected:
Array [
Object {
"id": "1",
"position": Object {
"x": 1,
"y": 1,
},
"selected": true,
},
Object {
"id": "2",
"position": Object {
"x": 2,
"y": 2,
},
"selected": false,
},
Object {
"id": "3",
"position": Object {
"x": 3,
"y": 3,
},
"selected": false,
},
]
+ Received:
Object {
"id": "1",
"position": Object {
"x": 1,
"y": 1,
},
"selected": true,
}
❯ src/components/DataStory/getNodesWithNewSelection.test.ts:75:51
|
Run tests:
packages/ui/src/components/DataStory/getNodesWithNewSelection.test.ts#L89
AssertionError: expected { id: '3', …(2) } to match object [ { id: '1', …(2) }, …(2) ]
- Expected:
Array [
Object {
"id": "1",
"position": Object {
"x": 1,
"y": 1,
},
"selected": false,
},
Object {
"id": "2",
"position": Object {
"x": 2,
"y": 2,
},
"selected": false,
},
Object {
"id": "3",
"position": Object {
"x": 3,
"y": 3,
},
"selected": true,
},
]
+ Received:
Object {
"id": "3",
"position": Object {
"x": 3,
"y": 3,
},
"selected": true,
}
❯ src/components/DataStory/getNodesWithNewSelection.test.ts:89:52
|
Run tests
Process completed with exit code 1.
|
Loading