Skip to content

Commit 001259b

Browse files
committed
test(api-calls): start debugging equality issue
1 parent fe8f488 commit 001259b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Calliope/Concerns/CallsApi.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,11 @@ describe('CallsApi', () => {
236236
});
237237

238238
it('should not parse the response body if data wrapped', async () => {
239-
const data = User.factory().raw();
239+
const data = User.factory().rawOne();
240240
fetchMock.mockResponseOnce({ data });
241241
const parsedResponse = await caller.call('GET');
242242

243-
expect(parsedResponse).toStrictEqual({ data });
243+
expect(parsedResponse.data).toStrictEqual(data);
244244
});
245245

246246
it('should reset the endpoint', async () => {

0 commit comments

Comments
 (0)