fix exports
This commit is contained in:
parent
d9618a0e06
commit
68603c2620
|
@ -250,5 +250,5 @@ var ArrayTests = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
exports.ArrayTests = ArrayTests;
|
module.exports = ArrayTests;
|
||||||
|
|
||||||
|
|
|
@ -122,4 +122,4 @@ var ObjectTests = {
|
||||||
TestCase.assertEqual(obj.arrayCol[2].doubleCol, 2);
|
TestCase.assertEqual(obj.arrayCol[2].doubleCol, 2);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
exports.ObjectTests = ObjectTests;
|
module.exports = ObjectTests;
|
||||||
|
|
|
@ -8,6 +8,12 @@ var React = require('react-native');
|
||||||
var Realm = require('realm');
|
var Realm = require('realm');
|
||||||
var RealmTestSuite = require('RealmTestSuite');
|
var RealmTestSuite = require('RealmTestSuite');
|
||||||
|
|
||||||
|
RealmTestSuite.tests.forEach(function(suite, name) {
|
||||||
|
for (var name in suite) {
|
||||||
|
suite[name]();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
var {
|
var {
|
||||||
AppRegistry,
|
AppRegistry,
|
||||||
StyleSheet,
|
StyleSheet,
|
||||||
|
|
|
@ -266,5 +266,5 @@ var RealmTests = {
|
||||||
TestCase.assertEqual(notificationCount, 1);
|
TestCase.assertEqual(notificationCount, 1);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
exports.RealmTests = RealmTests;
|
module.exports = RealmTests;
|
||||||
|
|
||||||
|
|
|
@ -100,4 +100,4 @@ var ResultsTests = {
|
||||||
TestCase.assertEqual(objects[4].doubleCol, 0);
|
TestCase.assertEqual(objects[4].doubleCol, 0);
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
exports.ResultsTests = ResultsTests;
|
module.exports = ResultsTests;
|
||||||
|
|
|
@ -17,5 +17,6 @@ var RealmTestSuite = {
|
||||||
require('./RealmTests.js'),
|
require('./RealmTests.js'),
|
||||||
require('./ResultsTests.js'),
|
require('./ResultsTests.js'),
|
||||||
],
|
],
|
||||||
|
testObjects: require('./TestObjects'),
|
||||||
}
|
}
|
||||||
module.exports = RealmTestSuite; // eslint-disable-line no-undef
|
module.exports = RealmTestSuite; // eslint-disable-line no-undef
|
||||||
|
|
Loading…
Reference in New Issue