Skip to content

Commit db096d8

Browse files
committed
Fix @typescript-eslint/no-unused-expressions related issues
1 parent ff7da6f commit db096d8

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
@@ -994,8 +994,7 @@ describe('meta', () => {
994994
/* empty */
995995
} else {
996996
// could be caused by a `throw`, `abort()` or `condition` - no `rejectedMeta` in that case
997-
// @ts-expect-error
998-
ret.meta.extraProp
997+
expect(ret.meta).not.toHaveProperty('extraProp')
999998
}
1000999
})
10011000

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)