Skip to content

Commit 74fb6f3

Browse files
committed
match jscodeshift spacing
1 parent 03ccaf0 commit 74fb6f3

File tree

1 file changed

+5
-0
lines changed
  • packages/rtk-codemods/transforms/createSliceReducerBuilder/__testfixtures__

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
const aSlice = createSlice({
22
name: 'name',
33
initialState: todoAdapter.getInitialState(),
4+
45
reducers: (create) => ({
56
property: create.reducer(() => {}),
7+
68
method: create.reducer((state, action) => {
79
todoAdapter.setMany(state, action);
810
}),
11+
912
identifier: create.reducer(todoAdapter.removeOne),
1013
preparedProperty: create.preparedReducer((todo) => ({ payload: { id: nanoid(), ...todo } }), () => {}),
14+
1115
preparedMethod: create.preparedReducer((todo) => {
1216
return { payload: { id: nanoid(), ...todo } }
1317
}, (state, action) => {
1418
todoAdapter.setMany(state, action);
1519
}),
20+
1621
preparedIdentifier: create.preparedReducer(withPayload(), todoAdapter.setMany)
1722
})
1823
})

0 commit comments

Comments
 (0)