You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-09 10:22:46 +03:00
25 lines
501 B
JavaScript
25 lines
501 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() {
|
|
console.log(Crypto);
|
|
expect(Crypto.getOlmVersion()[0]).toEqual(2);
|
|
});
|
|
});
|