Skip to content
Snippets Groups Projects
Commit 5d36b584 authored by Ben Wheeler's avatar Ben Wheeler
Browse files

make project saver tests pass; correct misnamed action

parent 966053b8
No related branches found
No related tags found
No related merge requests found
const SET_AUTOSAVE_TIMEOUT_ID = 'projectTitle/SET_AUTOSAVE_TIMEOUT_ID';
const SET_AUTOSAVE_TIMEOUT_ID = 'timeout/SET_AUTOSAVE_TIMEOUT_ID';
const initialState = {
autoSaveTimeoutId: null
......
......@@ -18,7 +18,10 @@ describe('projectSaverHOC', () => {
scratchGui: {
projectChanged: false,
projectState: {},
projectTitle: 'Scratch Project'
projectTitle: 'Scratch Project',
timeout: {
autoSaveTimeoutId: null
}
}
});
vm = new VM();
......@@ -358,19 +361,16 @@ describe('projectSaverHOC', () => {
/>
);
mounted.setProps({
projectChanged: true
projectChanged: true,
reduxProjectTitle: 'a'
});
mounted.setProps({
projectChanged: false
});
mounted.setProps({
projectChanged: true
projectChanged: true,
reduxProjectTitle: 'b'
});
mounted.setProps({
projectChanged: false
});
mounted.setProps({
projectChanged: true
projectChanged: true,
reduxProjectTitle: 'c'
});
// Fast-forward until all timers have been executed
jest.runAllTimers();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment