summaryrefslogtreecommitdiffstats
path: root/comm/chat/modules/test/test_otrlib.js
blob: 4b321359f9c7b7924d35281c398d48e6f7e38c18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/**
 * Test for libotr.
 */

"use strict";

const { OTRLibLoader } = ChromeUtils.importESModule(
  "resource:///modules/OTRLib.sys.mjs"
);

/**
 * Initialize libotr.
 */
add_setup(async function () {
  let libOTR = await OTRLibLoader.init();
  Assert.ok(libOTR.otrl_version, "libotr did load");
});