diff --git a/spec/unit/pushprocessor.spec.ts b/spec/unit/pushprocessor.spec.ts index 08604b974bc..682a863594c 100644 --- a/spec/unit/pushprocessor.spec.ts +++ b/spec/unit/pushprocessor.spec.ts @@ -1,6 +1,6 @@ import * as utils from "../test-utils/test-utils"; import { IActionsObject, PushProcessor } from "../../src/pushprocessor"; -import { EventType, IContent, MatrixClient, MatrixEvent } from "../../src"; +import { ConditionKind, EventType, IContent, MatrixClient, MatrixEvent } from "../../src"; describe("NotificationService", function () { const testUserId = "@ali:matrix.org"; @@ -520,7 +520,7 @@ describe("NotificationService", function () { actions: [], conditions: [ { - kind: "event_match", + kind: ConditionKind.EventMatch, key: "content.m\\.test.foo", pattern: "bar", }, @@ -539,7 +539,7 @@ describe("NotificationService", function () { actions: [], conditions: [ { - kind: "event_match", + kind: ConditionKind.EventMatch, key: "content.m\\\\example", pattern: "baz", }, @@ -558,7 +558,7 @@ describe("NotificationService", function () { actions: [], conditions: [ { - kind: "event_match", + kind: ConditionKind.EventMatch, // An incorrect escape sequence leaves the backslash. key: "content.m\\example", pattern: "baz",