2021-07-01 14:03:02 +00:00
|
|
|
import state from 'state'
|
|
|
|
import coopState from 'state/coop/coop-state'
|
|
|
|
import * as json from './__mocks__/document.json'
|
|
|
|
|
|
|
|
state.reset()
|
2021-07-14 08:08:12 +00:00
|
|
|
state
|
|
|
|
.send('MOUNTED')
|
|
|
|
.send('MOUNTED_SHAPES')
|
|
|
|
.send('LOADED_FROM_FILE', { json: JSON.stringify(json) })
|
2021-07-01 14:03:02 +00:00
|
|
|
state.send('CLEARED_PAGE')
|
|
|
|
|
|
|
|
coopState.reset()
|
|
|
|
|
|
|
|
describe('coop', () => {
|
|
|
|
it('joins a room', () => {
|
|
|
|
// TODO
|
|
|
|
null
|
|
|
|
})
|
|
|
|
|
|
|
|
it('leaves a room', () => {
|
|
|
|
// TODO
|
|
|
|
null
|
|
|
|
})
|
|
|
|
|
|
|
|
it('rejoins a room', () => {
|
|
|
|
// TODO
|
|
|
|
null
|
|
|
|
})
|
|
|
|
|
|
|
|
it('handles another user joining room', () => {
|
|
|
|
// TODO
|
|
|
|
null
|
|
|
|
})
|
|
|
|
|
|
|
|
it('handles another user leaving room', () => {
|
|
|
|
// TODO
|
|
|
|
null
|
|
|
|
})
|
|
|
|
|
|
|
|
it('sends mouse movements', () => {
|
|
|
|
// TODO
|
|
|
|
null
|
|
|
|
})
|
|
|
|
|
|
|
|
it('receives mouse movements', () => {
|
|
|
|
// TODO
|
|
|
|
null
|
|
|
|
})
|
|
|
|
})
|