mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-11 06:46:03 +00:00
correct test-runners tests
This commit is contained in:
parent
d23d60f272
commit
c5cad2fcd5
@ -3,6 +3,7 @@
|
||||
"test": "ava"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ava": "^0.16.0"
|
||||
"ava": "^0.16.0",
|
||||
"realm": "../../.."
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
});
|
@ -3,7 +3,8 @@
|
||||
"test": "jest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jest-cli": "^13.2.3"
|
||||
"jest-cli": "^13.2.3",
|
||||
"realm": "../../.."
|
||||
},
|
||||
"jest": {
|
||||
"testEnvironment": "node",
|
||||
|
@ -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');
|
||||
});
|
||||
|
@ -3,6 +3,7 @@
|
||||
"test": "mocha"
|
||||
},
|
||||
"devDependencies": {
|
||||
"mocha": "^3.0.2"
|
||||
"mocha": "^3.0.2",
|
||||
"realm": "../../.."
|
||||
}
|
||||
}
|
||||
|
@ -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');
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user