Skip to content

Commit 59ffd4b

Browse files
committed
Fix @typescript-eslint/no-unused-expressions related issues
1 parent 94b76dd commit 59ffd4b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/toolkit/src/tests/createAsyncThunk.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -996,8 +996,7 @@ describe('meta', () => {
996996
/* empty */
997997
} else {
998998
// could be caused by a `throw`, `abort()` or `condition` - no `rejectedMeta` in that case
999-
// @ts-expect-error
1000-
ret.meta.extraProp
999+
expect(ret.meta).not.toHaveProperty('extraProp')
10011000
}
10021001
})
10031002

packages/toolkit/src/tests/createDraftSafeSelector.withTypes.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ describe(createDraftSafeSelector.withTypes, () => {
4444
(todos) => todos.map(({ id }) => id),
4545
)
4646

47-
expect(selectTodoIds(rootState)).to.be.an('array').that.is.not.empty
47+
expect(selectTodoIds(rootState)).to.be.an('array').with.lengthOf(2)
4848
})
4949
})

0 commit comments

Comments
 (0)