We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe8f488 commit 001259bCopy full SHA for 001259b
1 file changed
tests/Calliope/Concerns/CallsApi.test.ts
@@ -236,11 +236,11 @@ describe('CallsApi', () => {
236
});
237
238
it('should not parse the response body if data wrapped', async () => {
239
- const data = User.factory().raw();
+ const data = User.factory().rawOne();
240
fetchMock.mockResponseOnce({ data });
241
const parsedResponse = await caller.call('GET');
242
243
- expect(parsedResponse).toStrictEqual({ data });
+ expect(parsedResponse.data).toStrictEqual(data);
244
245
246
it('should reset the endpoint', async () => {
0 commit comments