This commit is contained in:
DD 2018-04-11 14:38:41 -04:00
parent 41a68b1aea
commit d27aa0f5dd

View file

@ -22,10 +22,10 @@ test('undoRedoChangeFormat', () => {
let defaultState; let defaultState;
let reduxState = reducer(defaultState /* state */, changeFormat(Formats.BITMAP) /* action */); let reduxState = reducer(defaultState /* state */, changeFormat(Formats.BITMAP) /* action */);
expect(reduxState).toBe(Formats.BITMAP); expect(reduxState).toBe(Formats.BITMAP);
reduxState = reducer(reduxState /* state */, undo(Formats.UNDO_BITMAP) /* action */); reduxState = reducer(reduxState /* state */, undo(Formats.BITMAP_SKIP_CONVERT) /* action */);
expect(reduxState).toBe(Formats.UNDO_BITMAP); expect(reduxState).toBe(Formats.BITMAP_SKIP_CONVERT);
reduxState = reducer(reduxState /* state */, redo(Formats.UNDO_VECTOR) /* action */); reduxState = reducer(reduxState /* state */, redo(Formats.VECTOR_SKIP_CONVERT) /* action */);
expect(reduxState).toBe(Formats.UNDO_VECTOR); expect(reduxState).toBe(Formats.VECTOR_SKIP_CONVERT);
}); });
test('invalidChangeMode', () => { test('invalidChangeMode', () => {