Skip to content

Commit 315772f

Browse files
committed
surprised the tests actually run here
1 parent 6be5903 commit 315772f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/unit/blob-mode-reducer.test.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,21 @@ test('initialState', () => {
1515
test('changeBrushSize', () => {
1616
let defaultState;
1717
const newBrushSize = 8078;
18+
const initialSegmentSize = 1;
1819

1920
expect(brushReducer(defaultState /* state */, changeBrushSize(newBrushSize) /* action */))
20-
.toEqual({brushSize: newBrushSize});
21+
.toEqual({brushSize: newBrushSize, segSize: initialSegmentSize});
2122
expect(brushReducer(1 /* state */, changeBrushSize(newBrushSize) /* action */))
22-
.toEqual({brushSize: newBrushSize});
23+
.toEqual({brushSize: newBrushSize, segSize: initialSegmentSize});
2324

2425
expect(eraserReducer(defaultState /* state */, changeEraserSize(newBrushSize) /* action */))
25-
.toEqual({brushSize: newBrushSize});
26+
.toEqual({brushSize: newBrushSize, segSize: initialSegmentSize});
2627
expect(eraserReducer(1 /* state */, changeEraserSize(newBrushSize) /* action */))
27-
.toEqual({brushSize: newBrushSize});
28+
.toEqual({brushSize: newBrushSize, segSize: initialSegmentSize});
2829
});
2930

3031
test('invalidChangeBrushSize', () => {
31-
const origState = {brushSize: 1};
32+
const origState = {brushSize: 1, segSize: 1};
3233

3334
expect(brushReducer(origState /* state */, changeBrushSize('invalid argument') /* action */))
3435
.toBe(origState);

0 commit comments

Comments
 (0)