diff --git a/spec/unit/crypto/backup.spec.js b/spec/unit/crypto/backup.spec.js index 79f956fb0..511f81998 100644 --- a/spec/unit/crypto/backup.spec.js +++ b/spec/unit/crypto/backup.spec.js @@ -29,13 +29,8 @@ import MemoryCryptoStore from '../../../lib/crypto/store/memory-crypto-store.js' import MockStorageApi from '../../MockStorageApi'; import testUtils from '../../test-utils'; -// Crypto and OlmDevice won't import unless we have global.Olm -let OlmDevice; -let Crypto; -if (global.Olm) { - OlmDevice = require('../../../lib/crypto/OlmDevice'); - Crypto = require('../../../lib/crypto'); -} +import OlmDevice from '../../../lib/crypto/OlmDevice'; +import Crypto from '../../../lib/crypto'; const Olm = global.Olm;