2021-06-25 10:28:52 +00:00
|
|
|
import state from 'state'
|
|
|
|
import * as json from '../__mocks__/document.json'
|
|
|
|
|
|
|
|
state.reset()
|
|
|
|
state.send('MOUNTED').send('LOADED_FROM_FILE', { json: JSON.stringify(json) })
|
|
|
|
state.send('CLEARED_PAGE')
|
|
|
|
|
|
|
|
describe('arrow shape', () => {
|
|
|
|
it('creates shape', () => {
|
2021-07-01 14:03:02 +00:00
|
|
|
// TODO
|
2021-06-25 10:28:52 +00:00
|
|
|
null
|
|
|
|
})
|
|
|
|
|
|
|
|
it('cancels shape while creating', () => {
|
2021-07-01 14:03:02 +00:00
|
|
|
// TODO
|
2021-06-25 10:28:52 +00:00
|
|
|
null
|
|
|
|
})
|
|
|
|
|
|
|
|
it('moves shape', () => {
|
2021-07-01 14:03:02 +00:00
|
|
|
// TODO
|
2021-06-25 10:28:52 +00:00
|
|
|
null
|
|
|
|
})
|
|
|
|
|
|
|
|
it('rotates shape', () => {
|
2021-07-01 14:03:02 +00:00
|
|
|
// TODO
|
2021-06-25 10:28:52 +00:00
|
|
|
null
|
|
|
|
})
|
|
|
|
|
2021-07-01 14:03:02 +00:00
|
|
|
it('rotates shape in a group', () => {
|
|
|
|
// TODO
|
2021-06-25 10:28:52 +00:00
|
|
|
null
|
|
|
|
})
|
|
|
|
|
2021-07-01 14:03:02 +00:00
|
|
|
it('measures shape bounds', () => {
|
|
|
|
// TODO
|
2021-06-25 10:28:52 +00:00
|
|
|
null
|
|
|
|
})
|
|
|
|
|
2021-07-01 14:03:02 +00:00
|
|
|
it('measures shape rotated bounds', () => {
|
|
|
|
// TODO
|
|
|
|
null
|
|
|
|
})
|
|
|
|
|
|
|
|
it('transforms single shape', () => {
|
|
|
|
// TODO
|
2021-06-25 10:28:52 +00:00
|
|
|
null
|
|
|
|
})
|
|
|
|
|
|
|
|
it('transforms in a group', () => {
|
2021-07-01 14:03:02 +00:00
|
|
|
// TODO
|
2021-06-25 10:28:52 +00:00
|
|
|
null
|
|
|
|
})
|
|
|
|
|
|
|
|
/* -------------------- Specific -------------------- */
|
|
|
|
|
|
|
|
it('creates compass-aligned shape with shift key', () => {
|
2021-07-01 14:03:02 +00:00
|
|
|
// TODO
|
2021-06-25 10:28:52 +00:00
|
|
|
null
|
|
|
|
})
|
|
|
|
|
|
|
|
it('changes start handle', () => {
|
2021-07-01 14:03:02 +00:00
|
|
|
// TODO
|
2021-06-25 10:28:52 +00:00
|
|
|
null
|
|
|
|
})
|
|
|
|
|
|
|
|
it('changes end handle', () => {
|
2021-07-01 14:03:02 +00:00
|
|
|
// TODO
|
2021-06-25 10:28:52 +00:00
|
|
|
null
|
|
|
|
})
|
|
|
|
|
|
|
|
it('changes bend handle', () => {
|
2021-07-01 14:03:02 +00:00
|
|
|
// TODO
|
2021-06-25 10:28:52 +00:00
|
|
|
null
|
|
|
|
})
|
|
|
|
|
|
|
|
it('resets bend handle when double-pointed', () => {
|
2021-07-01 14:03:02 +00:00
|
|
|
// TODO
|
2021-06-25 10:28:52 +00:00
|
|
|
null
|
|
|
|
})
|
|
|
|
})
|