You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
describe("when calling with 'with_rel_types'",()=>{
1377
1380
consteventId="$event42:example.org";
1378
1381
1379
-
it("should raise an error if server has no support for relation based redactions",async()=>{
1382
+
it("should raise an error if the server has no support for relation based redactions",async()=>{
1380
1383
// load supported features
1381
1384
awaitclient.getVersions();
1382
1385
1383
1386
consttxnId=client.makeTxnId();
1384
1387
1385
1388
expect(()=>{
1386
1389
client.redactEvent(roomId,eventId,txnId,{
1387
-
with_relations: [RelationType.Reference],
1390
+
with_rel_types: [RelationType.Reference],
1388
1391
});
1389
1392
}).toThrow(
1390
1393
newError(
@@ -1394,34 +1397,30 @@ describe("MatrixClient", function () {
1394
1397
);
1395
1398
});
1396
1399
1397
-
describe("and the server supports relation based redactions (unstable)",()=>{
1398
-
beforeEach(async()=>{
1399
-
unstableFeatures["org.matrix.msc3912"]=true;
1400
-
// load supported features
1401
-
awaitclient.getVersions();
1402
-
});
1400
+
it("and the server has unstable support for relation based redactions, it should send 'org.matrix.msc3912.with_relations' in the request body",async()=>{
1401
+
unstableFeatures["org.matrix.msc3912"]=true;
1402
+
// load supported features
1403
+
awaitclient.getVersions();
1403
1404
1404
-
it("should send with_relations in the request body",async()=>{
0 commit comments