File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
packages/relay/tests/lib/decorators Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import { ConfigService } from '@hashgraph/json-rpc-config-service/dist/services'
44import { expect } from 'chai' ;
55import 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' ;
99import { RequestDetails } from '../../../src/lib/types' ;
1010
1111describe ( '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 ) ;
You can’t perform that action at this time.
0 commit comments