From a6bf40d4e2e408ea937273be920e9def6e583c4c Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 25 Oct 2018 19:21:29 +0100 Subject: [PATCH] We can always import these now --- spec/unit/crypto/backup.spec.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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;