1
1
import * as utils from "../test-utils/test-utils" ;
2
2
import { IActionsObject , PushProcessor } from "../../src/pushprocessor" ;
3
- import { EventType , IContent , MatrixClient , MatrixEvent } from "../../src" ;
3
+ import { ConditionKind , EventType , IContent , MatrixClient , MatrixEvent } from "../../src" ;
4
4
5
5
describe ( "NotificationService" , function ( ) {
6
6
const testUserId = "@ali:matrix.org" ;
@@ -520,7 +520,7 @@ describe("NotificationService", function () {
520
520
actions : [ ] ,
521
521
conditions : [
522
522
{
523
- kind : "event_match" ,
523
+ kind : ConditionKind . EventMatch ,
524
524
key : "content.m\\.test.foo" ,
525
525
pattern : "bar" ,
526
526
} ,
@@ -539,7 +539,7 @@ describe("NotificationService", function () {
539
539
actions : [ ] ,
540
540
conditions : [
541
541
{
542
- kind : "event_match" ,
542
+ kind : ConditionKind . EventMatch ,
543
543
key : "content.m\\\\example" ,
544
544
pattern : "baz" ,
545
545
} ,
@@ -558,7 +558,7 @@ describe("NotificationService", function () {
558
558
actions : [ ] ,
559
559
conditions : [
560
560
{
561
- kind : "event_match" ,
561
+ kind : ConditionKind . EventMatch ,
562
562
// An incorrect escape sequence leaves the backslash.
563
563
key : "content.m\\example" ,
564
564
pattern : "baz" ,
0 commit comments