Skip to content

Commit 507f4a1

Browse files
committed
fix tests
1 parent 21305b3 commit 507f4a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/async-data/__test__/AsyncView.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ test('should render success if asyncState is successful', function () {
6464
test.each([null, undefined])(
6565
'should throw asyncState is successful but data is missing',
6666
function (value) {
67-
expect(renderAsyncView({ isLoading: false, data: value })).toThrow()
67+
expect(() => renderAsyncView({ isLoading: false, data: value })).toThrow()
6868
},
6969
)
7070

7171
test.each([null, undefined])(
7272
'should render success if asyncState is successful but data is missing but allowed',
7373
function (value) {
74-
expect(
74+
expect(() =>
7575
renderAsyncView({
7676
isLoading: false,
7777
data: value,

0 commit comments

Comments
 (0)