Skip to content

Commit 28a9288

Browse files
committed
test: fix rejects
1 parent a839519 commit 28a9288

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/getAllContentIds.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@ describe('getAllContentIds', () => {
149149
}),
150150
);
151151

152-
expect(() =>
152+
await expect(
153153
client.getAllContentIds({
154154
endpoint: 'getAllContentIds-list-type',
155155
target: 'image',
156156
}),
157-
).toThrowError(
157+
).rejects.toThrowError(
158158
'The value of the field specified by `target` is not a string.',
159159
);
160160
});

0 commit comments

Comments
 (0)