Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it("all functions gracefully handle EditorStates without history", () => {
let state = new EditorState()
ist(undoDepth(state), 0)
ist(redoDepth(state), 0)
ist(undo(state), false)
ist(redo(state), false)
})