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
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]);
});
});