mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 13:32:28 -05:00
Fix test
This commit is contained in:
parent
41a68b1aea
commit
d27aa0f5dd
1 changed files with 4 additions and 4 deletions
|
@ -22,10 +22,10 @@ test('undoRedoChangeFormat', () => {
|
|||
let defaultState;
|
||||
let reduxState = reducer(defaultState /* state */, changeFormat(Formats.BITMAP) /* action */);
|
||||
expect(reduxState).toBe(Formats.BITMAP);
|
||||
reduxState = reducer(reduxState /* state */, undo(Formats.UNDO_BITMAP) /* action */);
|
||||
expect(reduxState).toBe(Formats.UNDO_BITMAP);
|
||||
reduxState = reducer(reduxState /* state */, redo(Formats.UNDO_VECTOR) /* action */);
|
||||
expect(reduxState).toBe(Formats.UNDO_VECTOR);
|
||||
reduxState = reducer(reduxState /* state */, undo(Formats.BITMAP_SKIP_CONVERT) /* action */);
|
||||
expect(reduxState).toBe(Formats.BITMAP_SKIP_CONVERT);
|
||||
reduxState = reducer(reduxState /* state */, redo(Formats.VECTOR_SKIP_CONVERT) /* action */);
|
||||
expect(reduxState).toBe(Formats.VECTOR_SKIP_CONVERT);
|
||||
});
|
||||
|
||||
test('invalidChangeMode', () => {
|
||||
|
|
Loading…
Reference in a new issue