mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 13:17:08 +00:00
Make CI happy
This commit is contained in:
parent
b2c711fb47
commit
ce26efeca3
@ -34,6 +34,10 @@ jira:
|
||||
#
|
||||
webhook:
|
||||
secret: secrettoken
|
||||
oauth:
|
||||
client_id: foo
|
||||
client_secret: bar
|
||||
redirect_uri: https://example.com/bridge_oauth/
|
||||
generic:
|
||||
# (Optional) Support for generic webhook events. `allowJsTransformationFunctions` will allow users to write short transformation snippets in code, and thus is unsafe in untrusted environments
|
||||
#
|
||||
|
@ -4,7 +4,7 @@ import { getConfigKeyMetadata } from "./Decorators";
|
||||
import { Node, YAMLSeq } from "yaml/types";
|
||||
import { randomBytes } from "crypto";
|
||||
|
||||
const DefaultConfig = new BridgeConfig({
|
||||
export const DefaultConfig = new BridgeConfig({
|
||||
bridge: {
|
||||
domain: "example.com",
|
||||
url: "http://localhost:8008",
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
import { expect } from "chai";
|
||||
import { AdminRoom } from "../src/AdminRoom";
|
||||
import { DefaultConfig } from "../src/Config/Defaults";
|
||||
import { NotifFilter } from "../src/NotificationFilters";
|
||||
import { UserTokenStore } from "../src/UserTokenStore";
|
||||
import { IntentMock } from "./utils/IntentMock";
|
||||
@ -12,7 +13,7 @@ function createAdminRoom(data: any = {admin_user: "@admin:bar"}): [AdminRoom, In
|
||||
if (!data.admin_user) {
|
||||
data.admin_user = "@admin:bar";
|
||||
}
|
||||
const tokenStore = new UserTokenStore("notapath", intent);
|
||||
const tokenStore = new UserTokenStore("notapath", intent, DefaultConfig);
|
||||
return [new AdminRoom(ROOM_ID, data, NotifFilter.getDefaultContent(), intent, tokenStore, {} as any, ), intent];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user