mirror of https://github.com/vector-im/riot-web
fix more private field accesses in tests
parent
2e73647a85
commit
017e0ba40f
|
@ -30,9 +30,7 @@ function createFailedDecryptionEvent() {
|
||||||
const event = new MatrixEvent({
|
const event = new MatrixEvent({
|
||||||
event_id: "event-id-" + Math.random().toString(16).slice(2),
|
event_id: "event-id-" + Math.random().toString(16).slice(2),
|
||||||
});
|
});
|
||||||
event._setClearData(
|
event.setClearData(event.badEncryptedMessage(":("));
|
||||||
event._badEncryptedMessage(":("),
|
|
||||||
);
|
|
||||||
return event;
|
return event;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,7 +65,7 @@ describe('DecryptionFailureTracker', function() {
|
||||||
tracker.eventDecrypted(decryptedEvent, err);
|
tracker.eventDecrypted(decryptedEvent, err);
|
||||||
|
|
||||||
// Indicate successful decryption: clear data can be anything where the msgtype is not m.bad.encrypted
|
// Indicate successful decryption: clear data can be anything where the msgtype is not m.bad.encrypted
|
||||||
decryptedEvent._setClearData({});
|
decryptedEvent.setClearData({});
|
||||||
tracker.eventDecrypted(decryptedEvent, null);
|
tracker.eventDecrypted(decryptedEvent, null);
|
||||||
|
|
||||||
// Pretend "now" is Infinity
|
// Pretend "now" is Infinity
|
||||||
|
|
Loading…
Reference in New Issue