UNPKG

tldraw

Version:

A tiny little drawing editor.

27 lines (20 loc) 629 B
import { vi } from 'vitest' import { TestEditor } from './TestEditor' vi.useFakeTimers() let editor: TestEditor afterEach(() => { editor?.dispose() }) beforeEach(() => { editor = new TestEditor() editor.createShapes([]) }) describe('When panning with the spacebar...', () => { it.todo( 'enters panning mode when spacebar is pressed, starts panning on pointer down, pans when the pointer moves, stops panning on pointer up, restores cursor on spacebar up' ) it.todo( 'does not pan when the spacebar is pressed and the ctrl (or command on mac) key is pressed' ) it.todo('Stops panning when the window blurs.') })