Run the GarbageCollectionTests only in an Electron process

This commit is contained in:
Kræn Hansen 2017-08-14 11:56:19 +02:00
parent f790b3aa13
commit d2febaa86d
1 changed files with 8 additions and 2 deletions

View File

@ -27,8 +27,7 @@ var TESTS = {
RealmTests: require('./realm-tests'),
ResultsTests: require('./results-tests'),
QueryTests: require('./query-tests'),
MigrationTests: require('./migration-tests'),
GarbageCollectionTests: require('./garbage-collection'),
MigrationTests: require('./migration-tests')
};
// encryption is not supported on windows
@ -52,6 +51,13 @@ if (isNodeProcess) {
console.log("Skipping the AsyncTests");
}
const isElectronProcess = !!process.versions.electron;
if (isElectronProcess) {
TESTS.GarbageCollectionTests = require('./garbage-collection');
} else {
console.log("Skipping the Electron specific GarbageCollectionTests");
}
var SPECIAL_METHODS = {
beforeEach: true,
afterEach: true,