diff --git a/tests/test-runners/ava/package.json b/tests/test-runners/ava/package.json index c4099996..90e30357 100644 --- a/tests/test-runners/ava/package.json +++ b/tests/test-runners/ava/package.json @@ -3,6 +3,7 @@ "test": "ava" }, "devDependencies": { - "ava": "^0.16.0" + "ava": "^0.16.0", + "realm": "../../.." } } diff --git a/tests/test-runners/ava/test.js b/tests/test-runners/ava/test.js index cd2a9a24..1829e6d3 100644 --- a/tests/test-runners/ava/test.js +++ b/tests/test-runners/ava/test.js @@ -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); }); \ No newline at end of file diff --git a/tests/test-runners/jest/package.json b/tests/test-runners/jest/package.json index 42391167..c0caa7f4 100644 --- a/tests/test-runners/jest/package.json +++ b/tests/test-runners/jest/package.json @@ -3,7 +3,8 @@ "test": "jest" }, "devDependencies": { - "jest-cli": "^13.2.3" + "jest-cli": "^13.2.3", + "realm": "../../.." }, "jest": { "testEnvironment": "node", diff --git a/tests/test-runners/jest/test.js b/tests/test-runners/jest/test.js index 2bd0b1d2..6b5d9043 100644 --- a/tests/test-runners/jest/test.js +++ b/tests/test-runners/jest/test.js @@ -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'); }); diff --git a/tests/test-runners/mocha/package.json b/tests/test-runners/mocha/package.json index 9c84aa0f..9342e424 100644 --- a/tests/test-runners/mocha/package.json +++ b/tests/test-runners/mocha/package.json @@ -3,6 +3,7 @@ "test": "mocha" }, "devDependencies": { - "mocha": "^3.0.2" + "mocha": "^3.0.2", + "realm": "../../.." } } diff --git a/tests/test-runners/mocha/test.js b/tests/test-runners/mocha/test.js index 51abb15a..7432c8db 100644 --- a/tests/test-runners/mocha/test.js +++ b/tests/test-runners/mocha/test.js @@ -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'); });