switch to jasmine (instead of jasmine-node) for JavaScript tests

This commit is contained in:
Hubert Chathi 2021-12-22 13:51:47 -05:00
parent 8475061136
commit 60122a2c2d
3 changed files with 9 additions and 3 deletions

View file

@ -14,7 +14,7 @@
],
"scripts": {
"build": "make -C .. js",
"test": "jasmine-node test --verbose --junitreport --captureExceptions"
"test": "jasmine --config=test/jasmine.json"
},
"repository": {
"type": "git",
@ -30,7 +30,7 @@
},
"homepage": "https://gitlab.matrix.org/matrix-org/olm",
"devDependencies": {
"jasmine-node": "^1.14.5"
"jasmine": "^3.0.0"
},
"publishConfig": {
"@matrix-org:registry":"https://gitlab.matrix.org/api/v4/projects/27/packages/npm/"

View file

@ -0,0 +1,6 @@
{
"spec_dir": "test",
"spec_files": [
"**/*.spec.js"
]
}

View file

@ -19,7 +19,7 @@ var Olm = require('../olm');
describe("sas", function() {
var alice, bob;
beforeEach(async function(done) {
beforeEach(function(done) {
Olm.init().then(function() {
alice = new Olm.SAS();
bob = new Olm.SAS();