Skip to content

Commit 7156a98

Browse files
committed
refactor: cleanup
1 parent b075b54 commit 7156a98

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,14 @@ describe('handle in-memory request', () => {
130130
);
131131
});
132132

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

139139
const request = await requestNetwork.createRequest(requestCreationParams);
140140

141-
console.log(JSON.stringify(request, null, 2));
142-
143141
expect(request.getData()).toStrictEqual(
144142
Object.assign(new EventEmitter(), {} as ClientTypes.IRequestDataWithEvents),
145143
);

0 commit comments

Comments
 (0)