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
Much of this transformation has been done automatically:
* add expect import to each file
* replace `not.to` with `toNot`
* replace `to[Not]Be{Undefined,Null}` with equivalents
* replace `jasmine.createSpy(...)` with `except.createSpy`, and `andCallFake`
with `andCall`
Also:
* replace `jasmine.createSpyObj` with manual alternatives
* replace `jasmine.Clock` with `lolex`
21 lines
418 B
JavaScript
21 lines
418 B
JavaScript
|
|
"use strict";
|
|
import 'source-map-support/register';
|
|
|
|
const sdk = require("../..");
|
|
let Crypto;
|
|
if (sdk.CRYPTO_ENABLED) {
|
|
Crypto = require("../../lib/crypto");
|
|
}
|
|
|
|
import expect from 'expect';
|
|
|
|
describe("Crypto", function() {
|
|
if (!sdk.CRYPTO_ENABLED) {
|
|
return;
|
|
}
|
|
it("Crypto exposes the correct olm library version", function() {
|
|
expect(Crypto.getOlmVersion()[0]).toEqual(2);
|
|
});
|
|
});
|