Skip to content

Commit

Permalink
adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EskiMojo14 committed Feb 4, 2024
1 parent fb6ab87 commit 619acff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/toolkit/src/tests/createEntityAdapter.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ describe('type tests', () => {
createSlice({
name: 'test',
initialState: adapter.getInitialState(),
// @ts-expect-error
reducers: {
addOne: adapter.addOne,
// @ts-expect-error
addOne2: adapter2.addOne,
},
})
Expand Down
3 changes: 2 additions & 1 deletion packages/toolkit/src/tests/createSlice.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import type {
PayloadActionCreator,
Reducer,
ReducerCreators,
ReducerDefinition,
SerializedError,
SliceCaseReducers,
ThunkDispatch,
Expand Down Expand Up @@ -891,7 +892,7 @@ describe('type tests', () => {

const createGenericSlice = <
T,
Reducers extends SliceCaseReducers<GenericState<T>>,
Reducers extends Record<string, ReducerDefinition>,
>({
name = '',
initialState,
Expand Down

0 comments on commit 619acff

Please sign in to comment.