Adds todo tests

This commit is contained in:
Steve Ruiz 2021-10-21 23:38:37 +01:00
parent 0dffdd2d29
commit 72d1c06014
3 changed files with 21 additions and 1 deletions

View file

@ -53,5 +53,8 @@ describe('When snapping', () => {
it.todo('Cleans up snap lines when cancelled')
it.todo('Cleans up snap lines when completed')
it.todo('Cleans up snap lines when starting to clone / not clone')
it.todo('Does not snap rotated shapes')
it.todo('Snaps the rotated bounding box of rotated shapes')
it.todo('Snaps to a shape on screen')
it.todo('Does not snap to a shape off screen.')
it.todo('Snaps while panning.')
})

View file

@ -232,3 +232,17 @@ describe('When creating with a transform session', () => {
expect(tlstate.getShape('rect1')).toBe(undefined)
})
})
describe('When snapping', () => {
it.todo('Does not snap when moving quicky')
it.todo('Snaps only matching edges when moving slowly')
it.todo('Snaps any edge to any edge when moving very slowly')
it.todo('Snaps a clone to its parent')
it.todo('Cleans up snap lines when cancelled')
it.todo('Cleans up snap lines when completed')
it.todo('Cleans up snap lines when starting to clone / not clone')
it.todo('Snaps the rotated bounding box of rotated shapes')
it.todo('Snaps to a shape on screen')
it.todo('Does not snap to a shape off screen.')
it.todo('Snaps while panning.')
})

View file

@ -336,6 +336,9 @@ describe('When snapping', () => {
it.todo('Cleans up snap lines when completed')
it.todo('Cleans up snap lines when starting to clone / not clone')
it.todo('Snaps the rotated bounding box of rotated shapes')
it.todo('Snaps to a shape on screen')
it.todo('Does not snap to a shape off screen.')
it.todo('Snaps while panning.')
})
describe('When translating linked shapes', () => {