Skip to content

Commit 154ba13

Browse files
committed
fixes tests
Signed-off-by: Konstantina Blazhukova <[email protected]>
1 parent 56b3453 commit 154ba13

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/relay/tests/lib/decorators/cache.spec.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { ConfigService } from '@hashgraph/json-rpc-config-service/dist/services'
44
import { expect } from 'chai';
55
import sinon from 'sinon';
66

7-
import { __test__, cache } from '../../../dist/lib/decorators';
8-
import { CacheService } from '../../../dist/lib/services/cacheService/cacheService';
7+
import { __test__, cache } from '../../../src/lib/decorators';
8+
import { CacheService } from '../../../src/lib/services/cacheService/cacheService';
99
import { RequestDetails } from '../../../src/lib/types';
1010

1111
describe('cache decorator', () => {
@@ -229,10 +229,7 @@ describe('cache decorator', () => {
229229
});
230230

231231
it('should ignore arguments with constructor name "RequestDetails"', () => {
232-
const mockRequestDetails = {
233-
constructor: { name: 'RequestDetails' },
234-
someField: 'shouldBeIgnored',
235-
};
232+
const mockRequestDetails = new RequestDetails({ requestId: '1', ipAddress: '127.0.0.1' });
236233
const args = [mockRequestDetails, 'earliest'];
237234

238235
const result = __test__.__private.generateCacheKey('eth_call', args);

0 commit comments

Comments
 (0)