Skip to content

Commit bff1f35

Browse files
committed
stupid
1 parent 9672a6c commit bff1f35

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

spec/helper.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,14 @@ if (process.env.PARSE_SERVER_TEST_DB === 'postgres') {
4747
uri: process.env.PARSE_SERVER_TEST_DATABASE_URI || postgresURI,
4848
collectionPrefix: 'test_',
4949
});
50-
} else if (process.env.TRAVIS != 'true') {
51-
startDB = require('mongodb-runner/mocha/before').bind({
52-
timeout: () => {},
53-
slow: () => {}
54-
})
55-
stopDB = require('mongodb-runner/mocha/after');
50+
} else {
51+
if (process.env.TRAVIS != 'true') {
52+
startDB = require('mongodb-runner/mocha/before').bind({
53+
timeout: () => {},
54+
slow: () => {}
55+
})
56+
stopDB = require('mongodb-runner/mocha/after');
57+
}
5658
databaseAdapter = new MongoStorageAdapter({
5759
uri: mongoURI,
5860
collectionPrefix: 'test_',

0 commit comments

Comments
 (0)