Skip to content

Commit

Permalink
fix: test per error output
Browse files Browse the repository at this point in the history
* expect(received).toBe(expected) // Object.is equality
  If it should pass with deep equality, replace "toBe" with "toStrictEqual"
  Expected: {"_events": {}, "_eventsCount": 0, "_maxListeners": undefined, Symbol(kCapture): false}
  Received: serializes to the same string
  • Loading branch information
MantisClone committed Jan 18, 2025
1 parent d27d33c commit b075b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/request-client.js/test/in-memory-request.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ describe('handle in-memory request', () => {

console.log(JSON.stringify(request, null, 2));

expect(request.getData()).toBe(
expect(request.getData()).toStrictEqual(
Object.assign(new EventEmitter(), {} as ClientTypes.IRequestDataWithEvents),
);
});
Expand Down

0 comments on commit b075b54

Please sign in to comment.