Skip to content

Commit d43e5d1

Browse files
committed
fix: remove rejects because getData() doesn't return a promise
1 parent cf2c2d6 commit d43e5d1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/request-client.js/test/in-memory-request.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,7 @@ describe('handle in-memory request', () => {
136136

137137
const request = await requestNetwork.createRequest(requestCreationParams);
138138

139-
expect(request.getData()).rejects.toThrow(
140-
'value must be a promise or a function returning a promise',
141-
);
139+
expect(request.getData()).toThrow('value must be a promise or a function returning a promise');
142140
});
143141

144142
it('persists a previously created in-memory request', async () => {

0 commit comments

Comments
 (0)