Skip to content

Commit

Permalink
refactor: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MantisClone committed Jan 18, 2025
1 parent b075b54 commit 7156a98
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/request-client.js/test/in-memory-request.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,14 @@ describe('handle in-memory request', () => {
);
});

it('throws an error when calling getData on an in-memory request', async () => {
it('returns an empty EventEmitter object when calling getData', async () => {
requestNetwork = new RequestNetwork({
skipPersistence: true,
signatureProvider: TestData.fakeSignatureProvider,
});

const request = await requestNetwork.createRequest(requestCreationParams);

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

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

0 comments on commit 7156a98

Please sign in to comment.