hookshot/tests/utils/AppserviceMock.ts
2021-12-18 16:58:23 +00:00

17 lines
349 B
TypeScript

import { IntentMock } from "./IntentMock";
export class AppserviceMock {
static create(){
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return new this() as any;
}
get botUserId() {
return `@bot:example.com`;
}
public getIntentForUserId() {
return IntentMock.create();
}
}