Skip to content

Commit 8c88740

Browse files
committed
fix(960): fix tests after update base of branch
Signed-off-by: matevszm <[email protected]>
1 parent 0fc4a9b commit 8c88740

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

src/__tests__/mocks/mocks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ export const makeArgs = (
381381
// eslint-disable-next-line @typescript-eslint/no-unused-vars
382382
const { state, config, ...restApi } = api;
383383

384-
const api_object = {
384+
const apiObject = {
385385
account: {} as unknown,
386386
token: {} as unknown,
387387
txExecution: makeSigningMock(),
@@ -432,7 +432,7 @@ export const makeArgs = (
432432
} as unknown as CoreApi;
433433

434434
return {
435-
api: api_object,
435+
api: apiObject,
436436
logger,
437437
state: {
438438
list: jest.fn().mockReturnValue([]),

src/core/services/hbar/__tests__/unit/hbar-service.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jest.mock('@hashgraph/sdk', () => ({
2626
HbarUnit: {
2727
Tinybar: 'tinybar',
2828
},
29+
TokenType: {
30+
NonFungibleUnique: 'NON_FUNGIBLE_UNIQUE',
31+
FungibleCommon: 'FUNGIBLE_COMMON',
32+
},
2933
}));
3034

3135
import { AccountId, Hbar, HbarUnit } from '@hashgraph/sdk';

src/core/services/state/__tests__/unit/state-service.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ jest.mock('path', () => ({
3131
join: jest.fn((...args: string[]) => args.join('/')),
3232
}));
3333

34+
jest.mock('@hashgraph/sdk', () => ({
35+
TokenType: {
36+
NonFungibleUnique: 'NON_FUNGIBLE_UNIQUE',
37+
FungibleCommon: 'FUNGIBLE_COMMON',
38+
},
39+
}));
40+
3441
describe('ZustandGenericStateServiceImpl', () => {
3542
let service: ZustandGenericStateServiceImpl;
3643
let logger: jest.Mocked<Logger>;

0 commit comments

Comments
 (0)