Skip to content

Commit a5781ee

Browse files
committed
Remove redundant assertion
1 parent 38eff96 commit a5781ee

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/toolkit/src/tests/createSlice.test-d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ describe('type tests', () => {
8787
expectTypeOf(slice.reducer).not.toMatchTypeOf<
8888
Reducer<string, PayloadAction>
8989
>()
90-
91-
expectTypeOf().not.toMatchTypeOf<Reducer<string, UnknownAction>>()
9290
})
9391

9492
test('Actions', () => {
@@ -161,7 +159,7 @@ describe('type tests', () => {
161159
>()
162160
})
163161

164-
test('Slice action creator types properties are "string"', () => {
162+
test('Slice action creator types properties are strongly typed', () => {
165163
const counter = createSlice({
166164
name: 'counter',
167165
initialState: 0,

0 commit comments

Comments
 (0)