mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00
17 lines
349 B
TypeScript
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();
|
|
}
|
|
}
|