correct test-runners tests

This commit is contained in:
blagoev 2017-03-22 14:57:46 +02:00
parent d23d60f272
commit c5cad2fcd5
6 changed files with 9 additions and 6 deletions

View File

@ -3,6 +3,7 @@
"test": "ava"
},
"devDependencies": {
"ava": "^0.16.0"
"ava": "^0.16.0",
"realm": "../../.."
}
}

View File

@ -1,7 +1,7 @@
import test from 'ava';
test('can require Realm', t => {
var realm = require('../../../../realm-js');
var realm = require('realm');
t.is('function', typeof realm);
t.is('Realm', realm.name);
});

View File

@ -3,7 +3,8 @@
"test": "jest"
},
"devDependencies": {
"jest-cli": "^13.2.3"
"jest-cli": "^13.2.3",
"realm": "../../.."
},
"jest": {
"testEnvironment": "node",

View File

@ -1,6 +1,6 @@
describe('Realm', function() {
it('should be requirable', function() {
var realm = require('../../../../realm-js');
var realm = require('realm');
expect(typeof realm).toBe('function');
expect(realm.name).toBe('Realm');
});

View File

@ -3,6 +3,7 @@
"test": "mocha"
},
"devDependencies": {
"mocha": "^3.0.2"
"mocha": "^3.0.2",
"realm": "../../.."
}
}

View File

@ -2,7 +2,7 @@ var assert = require('assert');
describe('Realm', function() {
it('should be requirable', function() {
var realm = require('../../../../realm-js');
var realm = require('realm');
assert.equal(typeof realm, 'function');
assert.equal(realm.name, 'Realm');
});