switch to jasmine (instead of jasmine-node) for JavaScript tests
This commit is contained in:
parent
8475061136
commit
60122a2c2d
3 changed files with 9 additions and 3 deletions
|
@ -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/"
|
||||
|
|
6
javascript/test/jasmine.json
Normal file
6
javascript/test/jasmine.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"spec_dir": "test",
|
||||
"spec_files": [
|
||||
"**/*.spec.js"
|
||||
]
|
||||
}
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue