index : matrix-js-sdk

My fork of matrix-js-sdk

diff options
context:
space:
mode:
authorHubert Chathi <[email protected]>2020-06-19 19:31:43 -0400
committerHubert Chathi <[email protected]>2020-06-19 19:31:43 -0400
commit2a78170395519db0a25309cbe8cfd06027053e9b (patch)
treef5414538b200cc9ec595702f36c609e2b7e0788c
parentcfca1c7b06e0f1c733012b3b9f32ddf6420ef26a (diff)
downloadmatrix-js-sdk-2a78170395519db0a25309cbe8cfd06027053e9b.tar.gz
lint
-rw-r--r--spec/unit/crypto.spec.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/spec/unit/crypto.spec.js b/spec/unit/crypto.spec.js
index 9039d77d..8f7fff10 100644
--- a/spec/unit/crypto.spec.js
+++ b/spec/unit/crypto.spec.js
@@ -49,7 +49,8 @@ describe("Crypto", function() {
event.getWireContent = () => {return {algorithm: olmlib.MEGOLM_ALGORITHM};};
event.getForwardingCurve25519KeyChain = () => ["not empty"];
event.isKeySourceUntrusted = () => false;
- event.getClaimedEd25519Key = () => 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA';
+ event.getClaimedEd25519Key =
+ () => 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA';
encryptionInfo = client.getEventEncryptionInfo(event);
expect(encryptionInfo.encrypted).toBeTruthy();
@@ -60,8 +61,10 @@ describe("Crypto", function() {
event.getForwardingCurve25519KeyChain = () => [];
event.isKeySourceUntrusted = () => true;
const device = new DeviceInfo("FLIBBLE");
- device.keys["curve25519:FLIBBLE"] = 'YmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmI';
- device.keys["ed25519:FLIBBLE"] = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA';
+ device.keys["curve25519:FLIBBLE"] =
+ 'YmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmI';
+ device.keys["ed25519:FLIBBLE"] =
+ 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA';
client._crypto._deviceList.getDeviceByIdentityKey = () => device;
encryptionInfo = client.getEventEncryptionInfo(event);
@@ -72,7 +75,8 @@ describe("Crypto", function() {
// known sender, trusted megolm key, but bad ed25519key
event.isKeySourceUntrusted = () => false;
- device.keys["ed25519:FLIBBLE"] = 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB';
+ device.keys["ed25519:FLIBBLE"] =
+ 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB';
encryptionInfo = client.getEventEncryptionInfo(event);
expect(encryptionInfo.encrypted).toBeTruthy();