test(tldraw): use jest .todo instead of TODO comments
This commit is contained in:
parent
206a1236a1
commit
079d4d05e8
5 changed files with 18 additions and 27 deletions
|
@ -159,12 +159,8 @@ describe('Arrow session', () => {
|
||||||
expect(tlstate.getShape<ArrowShape>('arrow1').handles.end.point).toStrictEqual([85, 85])
|
expect(tlstate.getShape<ArrowShape>('arrow1').handles.end.point).toStrictEqual([85, 85])
|
||||||
})
|
})
|
||||||
|
|
||||||
it('updates the arrow when bound on both sides', () => {
|
it.todo('updates the arrow when bound on both sides')
|
||||||
// TODO
|
|
||||||
})
|
|
||||||
|
|
||||||
it('snaps the bend to zero when dragging the bend handle toward the center', () => {
|
it.todo('snaps the bend to zero when dragging the bend handle toward the center')
|
||||||
// TODO
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
@ -173,13 +173,7 @@ describe('Brush session', () => {
|
||||||
// expect(tlstate.getShape<ArrowShape>('arrow1').handles.start.bindingId).toBe(undefined)
|
// expect(tlstate.getShape<ArrowShape>('arrow1').handles.start.bindingId).toBe(undefined)
|
||||||
})
|
})
|
||||||
|
|
||||||
// it('clones a shape with a parent shape', () => {
|
// it.todo('clones a shape with a parent shape')
|
||||||
// tlstate.loadDocument(mockDocument)
|
|
||||||
// // TODO
|
|
||||||
// })
|
|
||||||
|
|
||||||
// it('clones a shape with children', () => {
|
// it.todo('clones a shape with children')
|
||||||
// tlstate.loadDocument(mockDocument)
|
|
||||||
// // TODO
|
|
||||||
// })
|
|
||||||
})
|
})
|
||||||
|
|
|
@ -115,21 +115,13 @@ describe('TLDrawState', () => {
|
||||||
expect(tlstate.appState.status.current).toBe('idle')
|
expect(tlstate.appState.status.current).toBe('idle')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('deletes shapes if cancelled during creating', () => {
|
it.todo('deletes shapes if cancelled during creating')
|
||||||
// TODO
|
|
||||||
})
|
|
||||||
|
|
||||||
it('deletes shapes on undo after creating', () => {
|
it.todo('deletes shapes on undo after creating')
|
||||||
// TODO
|
|
||||||
})
|
|
||||||
|
|
||||||
it('re-creates shapes on undo after creating', () => {
|
it.todo('re-creates shapes on undo after creating')
|
||||||
// TODO
|
|
||||||
})
|
|
||||||
|
|
||||||
it('selects all', () => {
|
it.todo('selects all')
|
||||||
// TODO
|
|
||||||
})
|
|
||||||
|
|
||||||
// Single click on a selected shape to select just that shape
|
// Single click on a selected shape to select just that shape
|
||||||
|
|
||||||
|
|
|
@ -2726,6 +2726,15 @@
|
||||||
"@babel/runtime" "^7.12.5"
|
"@babel/runtime" "^7.12.5"
|
||||||
"@testing-library/dom" "^8.0.0"
|
"@testing-library/dom" "^8.0.0"
|
||||||
|
|
||||||
|
"@tldraw/core@^0.0.53":
|
||||||
|
version "0.0.53"
|
||||||
|
resolved "https://registry.yarnpkg.com/@tldraw/core/-/core-0.0.53.tgz#2db2b27df441169e452e0aa07570adca8b06b582"
|
||||||
|
integrity sha512-hxZIUR3Sm320tvGW5lWEKfw1QJhe6mJu7IrG5ka5G3slusqaY3cQY9EafFqH07yEXul2MU2RENIQus7fh+Gwcg==
|
||||||
|
dependencies:
|
||||||
|
deepmerge "^4.2.2"
|
||||||
|
ismobilejs "^1.1.1"
|
||||||
|
react-use-gesture "^9.1.3"
|
||||||
|
|
||||||
"@tootallnate/once@1":
|
"@tootallnate/once@1":
|
||||||
version "1.1.2"
|
version "1.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82"
|
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82"
|
||||||
|
|
Loading…
Reference in a new issue