2015-10-27 13:59:15 -07:00
|
|
|
/* Copyright 2015 Realm Inc - All Rights Reserved
|
|
|
|
* Proprietary and Confidential
|
|
|
|
*/
|
2015-10-02 14:57:54 -07:00
|
|
|
|
2015-10-06 00:57:35 -07:00
|
|
|
'use strict';
|
2015-10-02 15:15:25 -07:00
|
|
|
|
2015-10-06 00:57:35 -07:00
|
|
|
exports.ArrayTests = require('./ArrayTests');
|
|
|
|
exports.ObjectTests = require('./ObjectTests');
|
|
|
|
exports.RealmTests = require('./RealmTests');
|
|
|
|
exports.ResultsTests = require('./ResultsTests');
|
2015-10-14 18:52:55 -07:00
|
|
|
|
2015-10-15 11:34:24 -07:00
|
|
|
var SPECIAL_METHODS = {
|
|
|
|
beforeEach: true,
|
|
|
|
afterEach: true,
|
|
|
|
};
|
|
|
|
|
|
|
|
Object.defineProperty(exports, 'getTestNames', {
|
|
|
|
value: function() {
|
|
|
|
var testNames = {};
|
|
|
|
|
|
|
|
for (var suiteName in exports) {
|
|
|
|
var testSuite = exports[suiteName];
|
|
|
|
|
|
|
|
testNames[suiteName] = Object.keys(testSuite).filter(function(testName) {
|
|
|
|
return !(testName in SPECIAL_METHODS) && typeof testSuite[testName] == 'function';
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
return testNames;
|
|
|
|
}
|
|
|
|
});
|