Skip to content

Commit 7c2f156

Browse files
committed
Test package only in Node environment
It depends on Webpack which can't be included in a browser test UMD bundle.
1 parent d232b6f commit 7c2f156

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

test/v1/package.test.js renamed to test/internal/node/package.test.js

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
var path = require('path');
2121
var fs = require('fs');
2222
var webpack = require('webpack');
23-
var sharedNeo4j = require('../../test/internal/shared-neo4j').default;
24-
var testUtils = require('../../test/internal/test-utils').default;
23+
var sharedNeo4j = require('../shared-neo4j').default;
2524

2625
describe('Package', function () {
2726

@@ -34,11 +33,6 @@ describe('Package', function () {
3433
});
3534

3635
it('should work in NodeJS', function (done) {
37-
if (testUtils.isClient()) {
38-
done();
39-
return;
40-
}
41-
4236
var neo4j;
4337

4438
try {
@@ -60,11 +54,6 @@ describe('Package', function () {
6054
});
6155

6256
it('should work with Webpack', function (done) {
63-
if (testUtils.isClient()) {
64-
done();
65-
return;
66-
}
67-
6857
// test project structure:
6958
// build/sandbox/
7059
// ├── dist
@@ -111,7 +100,7 @@ describe('Package', function () {
111100
});
112101

113102
function sandboxPath() {
114-
var parts = [__dirname, '..', '..', 'build', 'sandbox'];
103+
var parts = [__dirname, '..', '..', '..', 'build', 'sandbox'];
115104
for (var i = 0; i < arguments.length; i++) {
116105
parts.push(arguments[i]);
117106
}

0 commit comments

Comments
 (0)