1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-23 22:42:10 +03:00

Add a test to check the olm version

This commit is contained in:
Mark Haines
2016-09-15 14:08:25 +01:00
parent 38681202dc
commit 577b0e8f1b

15
spec/unit/crypto.spec.js Normal file
View File

@@ -0,0 +1,15 @@
"use strict";
var Crypto = require("../../lib/crypto");
var sdk = require("../..");
var testUtils = require("../test-utils");
describe("Crypto", function() {
if (!sdk.CRYPTO_ENABLED) {
return;
}
it("Crypto exposes the correct olm library version", function() {
expect(Crypto.getOlmVersion()).toEqual([1,3,0]);
});
});