Skip to content

Commit 7e90014

Browse files
committed
Fix lint errors.
1 parent a700a47 commit 7e90014

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/unit/pushprocessor.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as utils from "../test-utils/test-utils";
22
import { IActionsObject, PushProcessor } from "../../src/pushprocessor";
3-
import { EventType, IContent, MatrixClient, MatrixEvent } from "../../src";
3+
import { ConditionKind, EventType, IContent, MatrixClient, MatrixEvent } from "../../src";
44

55
describe("NotificationService", function () {
66
const testUserId = "@ali:matrix.org";
@@ -520,7 +520,7 @@ describe("NotificationService", function () {
520520
actions: [],
521521
conditions: [
522522
{
523-
kind: "event_match",
523+
kind: ConditionKind.EventMatch,
524524
key: "content.m\\.test.foo",
525525
pattern: "bar",
526526
},
@@ -539,7 +539,7 @@ describe("NotificationService", function () {
539539
actions: [],
540540
conditions: [
541541
{
542-
kind: "event_match",
542+
kind: ConditionKind.EventMatch,
543543
key: "content.m\\\\example",
544544
pattern: "baz",
545545
},
@@ -558,7 +558,7 @@ describe("NotificationService", function () {
558558
actions: [],
559559
conditions: [
560560
{
561-
kind: "event_match",
561+
kind: ConditionKind.EventMatch,
562562
// An incorrect escape sequence leaves the backslash.
563563
key: "content.m\\example",
564564
pattern: "baz",

0 commit comments

Comments
 (0)