mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Much more thorough tests! (#1053)
This commit is contained in:
parent
d4ff5cb926
commit
bd7856adf3
22 changed files with 11883 additions and 24 deletions
|
@ -14,6 +14,14 @@ export class SceneHistory {
|
|||
private stateHistory: string[] = [];
|
||||
private redoStack: string[] = [];
|
||||
|
||||
getSnapshotForTest() {
|
||||
return {
|
||||
recording: this.recording,
|
||||
stateHistory: this.stateHistory.map((s) => JSON.parse(s)),
|
||||
redoStack: this.redoStack.map((s) => JSON.parse(s)),
|
||||
};
|
||||
}
|
||||
|
||||
clear() {
|
||||
this.stateHistory.length = 0;
|
||||
this.redoStack.length = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue