You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
24 lines
472 B
JavaScript
24 lines
472 B
JavaScript
|
|
"use strict";
|
|
import 'source-map-support/register';
|
|
import Crypto from '../../lib/crypto';
|
|
import expect from 'expect';
|
|
|
|
const sdk = require("../..");
|
|
|
|
const Olm = global.Olm;
|
|
|
|
describe("Crypto", function() {
|
|
if (!sdk.CRYPTO_ENABLED) {
|
|
return;
|
|
}
|
|
|
|
beforeEach(function(done) {
|
|
Olm.init().then(done);
|
|
});
|
|
|
|
it("Crypto exposes the correct olm library version", function() {
|
|
expect(Crypto.getOlmVersion()[0]).toEqual(3);
|
|
});
|
|
});
|