HF RL Explorer

text editor undo history: add test

text editor undo history: add test: a task in smol-software-harbor (Harbor dataset). Add tests to test/history.test.js covering: applying the same text twice records only one undo step, undo() and redo() return false (and change nothing) when there is nothing to undo or redo, a redo can itself be…

The task

Add tests to `test/history.test.js` covering: applying the same text twice records only one undo step, `undo()` and `redo()` return `false` (and change nothing) when there is nothing to undo or redo, a redo can itself be undone, and a new edit after an undo clears the redo stack. Keep the existing test and do not…

Part of efederici/smol-software-harbor.