|
|
@ -313,9 +313,7 @@ describe("restoreAppState", () => {
|
|
|
|
expect(restoredAppState.activeTool).toEqual(
|
|
|
|
expect(restoredAppState.activeTool).toEqual(
|
|
|
|
stubImportedAppState.activeTool,
|
|
|
|
stubImportedAppState.activeTool,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
expect(restoredAppState.cursorButton).toBe(
|
|
|
|
expect(restoredAppState.cursorButton).toBe("up");
|
|
|
|
stubImportedAppState.cursorButton,
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
expect(restoredAppState.name).toBe(stubImportedAppState.name);
|
|
|
|
expect(restoredAppState.name).toBe(stubImportedAppState.name);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -347,9 +345,7 @@ describe("restoreAppState", () => {
|
|
|
|
stubImportedAppState,
|
|
|
|
stubImportedAppState,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
expect(restoredAppState.cursorButton).toBe(
|
|
|
|
expect(restoredAppState.cursorButton).toBe("up");
|
|
|
|
stubImportedAppState.cursorButton,
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
expect(restoredAppState.name).toBe(stubImportedAppState.name);
|
|
|
|
expect(restoredAppState.name).toBe(stubImportedAppState.name);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -502,9 +498,7 @@ describe("restore", () => {
|
|
|
|
importedDataState.appState = stubImportedAppState;
|
|
|
|
importedDataState.appState = stubImportedAppState;
|
|
|
|
|
|
|
|
|
|
|
|
const restoredData = restore.restore(importedDataState, null, null);
|
|
|
|
const restoredData = restore.restore(importedDataState, null, null);
|
|
|
|
expect(restoredData.appState.cursorButton).toBe(
|
|
|
|
expect(restoredData.appState.cursorButton).toBe("up");
|
|
|
|
stubImportedAppState.cursorButton,
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
expect(restoredData.appState.name).toBe(stubImportedAppState.name);
|
|
|
|
expect(restoredData.appState.name).toBe(stubImportedAppState.name);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|