Use const instead of plain string

This commit is contained in:
Till Faelligen 2023-10-23 16:40:55 +02:00
parent 1b7ce13d39
commit 395bf9d35f
No known key found for this signature in database
GPG key ID: ACCDC9606D472758

View file

@ -81,7 +81,7 @@ func Test_evaluatePushRules(t *testing.T) {
{ {
name: "m.reaction doesn't notify", name: "m.reaction doesn't notify",
eventContent: `{"type":"m.reaction","room_id":"!room:example.com"}`, eventContent: `{"type":"m.reaction","room_id":"!room:example.com"}`,
wantAction: "", wantAction: pushrules.UnknownAction,
wantActions: []*pushrules.Action{}, wantActions: []*pushrules.Action{},
}, },
{ {