test(tldraw): use jest .todo instead of TODO comments

This commit is contained in:
Tais Massaro 2021-09-01 20:49:40 +02:00
parent 206a1236a1
commit 079d4d05e8
5 changed files with 18 additions and 27 deletions

View file

@ -159,12 +159,8 @@ describe('Arrow session', () => {
expect(tlstate.getShape<ArrowShape>('arrow1').handles.end.point).toStrictEqual([85, 85])
})
it('updates the arrow when bound on both sides', () => {
// TODO
})
it.todo('updates the arrow when bound on both sides')
it('snaps the bend to zero when dragging the bend handle toward the center', () => {
// TODO
})
it.todo('snaps the bend to zero when dragging the bend handle toward the center')
})
})

View file

@ -173,13 +173,7 @@ describe('Brush session', () => {
// expect(tlstate.getShape<ArrowShape>('arrow1').handles.start.bindingId).toBe(undefined)
})
// it('clones a shape with a parent shape', () => {
// tlstate.loadDocument(mockDocument)
// // TODO
// })
// it.todo('clones a shape with a parent shape')
// it('clones a shape with children', () => {
// tlstate.loadDocument(mockDocument)
// // TODO
// })
// it.todo('clones a shape with children')
})

View file

@ -115,21 +115,13 @@ describe('TLDrawState', () => {
expect(tlstate.appState.status.current).toBe('idle')
})
it('deletes shapes if cancelled during creating', () => {
// TODO
})
it.todo('deletes shapes if cancelled during creating')
it('deletes shapes on undo after creating', () => {
// TODO
})
it.todo('deletes shapes on undo after creating')
it('re-creates shapes on undo after creating', () => {
// TODO
})
it.todo('re-creates shapes on undo after creating')
it('selects all', () => {
// TODO
})
it.todo('selects all')
// Single click on a selected shape to select just that shape

View file

@ -2726,6 +2726,15 @@
"@babel/runtime" "^7.12.5"
"@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":
version "1.1.2"
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82"