<commit_before>
"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);
    });
});<commit_msg>Make the tests work without olm<commit_after>
"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);
    });
});
{'fraction_non_alphanumeric': 0.19398907103825136, 'fraction_numerical': 0.00546448087431694, 'mean_word_length': 3.2126436781609193, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7187361', 'n_tokens_mistral': 242, 'n_tokens_neox': 241, 'n_words': 54}