Skip to content

Commit 33fa015

Browse files
committed
modify by lint
1 parent 790baea commit 33fa015

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

lib/agent/lockup/cap.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,5 @@ export const getCap: GetCap = async (
1212
): Promise<string | undefined> => {
1313
const lockupContract = await getLockupContract(options.provider)
1414

15-
return lockupContract
16-
? await lockupContract.cap()
17-
: undefined
15+
return lockupContract ? await lockupContract.cap() : undefined
1816
}

lib/agent/lockup/positionsCreate.spec.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { stubTransactionResposeFactory } from '../../common/utils/for-test'
1111

1212
jest.mock('./common', () => {
1313
return {
14-
getLockupContract: jest.fn()
14+
getLockupContract: jest.fn(),
1515
}
1616
})
1717

@@ -24,7 +24,10 @@ describe('positionsCreate.ts', () => {
2424
}
2525

2626
it('success', async () => {
27-
(getLockupContract as jest.Mock).mockReturnValueOnce({depositToProperty: (propertyAddress: string, amount: number) => stubTransactionResposeFactory})
27+
;(getLockupContract as jest.Mock).mockReturnValueOnce({
28+
depositToProperty: (propertyAddress: string, amount: number) =>
29+
stubTransactionResposeFactory,
30+
})
2831
const options: Options = {
2932
provider: testProviders.ropsten,
3033
propertyAddress,
@@ -33,10 +36,10 @@ describe('positionsCreate.ts', () => {
3336
}
3437
const result = await positionsCreate(options)
3538
expect(getLockupContract).toHaveBeenCalledTimes(1)
36-
expect(result).toEqual(stubTransactionResposeFactory)
39+
expect(result).toEqual(stubTransactionResposeFactory)
3740
})
3841
it('return undefined if network is not valid', async () => {
39-
(getLockupContract as jest.Mock).mockReturnValueOnce(undefined)
42+
;(getLockupContract as jest.Mock).mockReturnValueOnce(undefined)
4043
const options: Options = {
4144
provider: testProviders.polyMumbai,
4245
propertyAddress,

0 commit comments

Comments
 (0)