1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2024-12-11 08:30:07 +01:00
Whalebird-desktop-client-ma.../spec/mock/megalodon.ts

11 lines
298 B
TypeScript

import Mastodon, { MegalodonInstance } from 'megalodon'
interface MockedMegalodon extends MegalodonInstance {
mockResolvedValue: Function
mockImplementation: Function
mockClear: Function
}
const mockedMegalodon: jest.Mocked<MockedMegalodon> = Mastodon as any
export default mockedMegalodon