1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-07 23:02:56 +03:00

We can always import these now

This commit is contained in:
David Baker
2018-10-25 19:21:29 +01:00
parent b3bb99d76a
commit a6bf40d4e2

View File

@@ -29,13 +29,8 @@ import MemoryCryptoStore from '../../../lib/crypto/store/memory-crypto-store.js'
import MockStorageApi from '../../MockStorageApi'; import MockStorageApi from '../../MockStorageApi';
import testUtils from '../../test-utils'; import testUtils from '../../test-utils';
// Crypto and OlmDevice won't import unless we have global.Olm import OlmDevice from '../../../lib/crypto/OlmDevice';
let OlmDevice; import Crypto from '../../../lib/crypto';
let Crypto;
if (global.Olm) {
OlmDevice = require('../../../lib/crypto/OlmDevice');
Crypto = require('../../../lib/crypto');
}
const Olm = global.Olm; const Olm = global.Olm;