@@ -3,13 +3,15 @@ import { createMarketContract, MarketContract } from '.'
33import { createSchemaCaller } from '../../ethereum/market/schema'
44import { createVoteCaller } from '../../ethereum/market/vote'
55import { createAuthenticateCaller } from './authenticate'
6+ import { createNameCaller } from './name'
67import { createBehaviorCaller } from '../../ethereum/market/behavior'
78import { createGetAuthenticatedPropertiesCaller } from './getAuthenticatedProperties'
89import { marketAbi } from './abi'
910
1011jest . mock ( '../../ethereum/market/schema' )
1112jest . mock ( '../../ethereum/market/vote' )
1213jest . mock ( './authenticate' )
14+ jest . mock ( './name' )
1315jest . mock ( '../../ethereum/market/behavior' )
1416jest . mock ( './getAuthenticatedProperties' )
1517
@@ -25,7 +27,9 @@ describe('market/index.ts', () => {
2527 ; ( createGetAuthenticatedPropertiesCaller as jest . Mock ) . mockImplementation (
2628 ( contract ) => contract
2729 )
28-
30+ ; ( createNameCaller as jest . Mock ) . mockImplementation (
31+ ( contract ) => contract
32+ )
2933 describe ( 'createMarketContract' , ( ) => {
3034 it ( 'check return object' , ( ) => {
3135 const host = 'localhost'
@@ -41,6 +45,7 @@ describe('market/index.ts', () => {
4145 schema : createSchemaCaller ( contract ) ,
4246 authenticate : createAuthenticateCaller ( contract , provider ) ,
4347 behavior : createBehaviorCaller ( contract ) ,
48+ name : createNameCaller ( contract ) ,
4449 getAuthenticatedProperties :
4550 createGetAuthenticatedPropertiesCaller ( contract ) ,
4651 }
0 commit comments