Skip to content

Commit bac9a71

Browse files
committed
modify by lint
1 parent f253f44 commit bac9a71

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

lib/agent/lockup/depositToPosition.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,30 @@ import { testProviders } from '../common/const'
44

55
jest.mock('./common', () => {
66
return {
7-
getLockupContract: jest.fn()
7+
getLockupContract: jest.fn(),
88
}
99
})
1010

1111
describe('depositToPosition.ts', () => {
1212
const options = {
1313
provider: testProviders.ropsten,
1414
positionTokenId: '1',
15-
amount: '100'
15+
amount: '100',
1616
}
1717
it('success', async () => {
1818
const expected = true
1919

2020
;(getLockupContract as jest.Mock).mockReturnValue({
21-
depositToPosition: (positionTokenId: string, amount: string) => expected
21+
depositToPosition: (positionTokenId: string, amount: string) => expected,
2222
})
2323

2424
const result = await depositToPosition(options)
2525
expect(result).toEqual(expected)
2626
})
27-
it('return undefined if no valid network', async () => {
27+
it('return undefined if no valid network', async () => {
2828
const expected = undefined
2929
;(getLockupContract as jest.Mock).mockReturnValue(undefined)
30-
const result = await depositToPosition(options)
30+
const result = await depositToPosition(options)
3131
expect(result).toEqual(expected)
3232
})
3333
})

0 commit comments

Comments
 (0)