
"use strict";
const Crypto = require("../../lib/crypto");
const sdk = require("../..");

describe("Crypto", function() {
    if (!sdk.CRYPTO_ENABLED) {
        return;
    }

    it("Crypto exposes the correct olm library version", function() {
        expect(Crypto.getOlmVersion()[0]).toEqual(2);
    });
});


"use strict";

const sdk = require("../..");
let Crypto;
if (sdk.CRYPTO_ENABLED) {
    Crypto = require("../../lib/crypto");
}

describe("Crypto", function() {
    if (!sdk.CRYPTO_ENABLED) {
        return;
    }
    it("Crypto exposes the correct olm library version", function() {
        expect(Crypto.getOlmVersion()[0]).toEqual(2);
    });
});

Make the tests work without olm
Make the tests work without olm

Olm is an optional dependency, so the tests should work without it.
