fix exports

This commit is contained in:
Ari Lazier 2015-10-02 15:50:23 -07:00 committed by Scott Kyle
parent d9618a0e06
commit 68603c2620
6 changed files with 11 additions and 4 deletions

View File

@ -250,5 +250,5 @@ var ArrayTests = {
});
},
};
exports.ArrayTests = ArrayTests;
module.exports = ArrayTests;

View File

@ -122,4 +122,4 @@ var ObjectTests = {
TestCase.assertEqual(obj.arrayCol[2].doubleCol, 2);
},
};
exports.ObjectTests = ObjectTests;
module.exports = ObjectTests;

View File

@ -8,6 +8,12 @@ var React = require('react-native');
var Realm = require('realm');
var RealmTestSuite = require('RealmTestSuite');
RealmTestSuite.tests.forEach(function(suite, name) {
for (var name in suite) {
suite[name]();
}
});
var {
AppRegistry,
StyleSheet,

View File

@ -266,5 +266,5 @@ var RealmTests = {
TestCase.assertEqual(notificationCount, 1);
},
};
exports.RealmTests = RealmTests;
module.exports = RealmTests;

View File

@ -100,4 +100,4 @@ var ResultsTests = {
TestCase.assertEqual(objects[4].doubleCol, 0);
},
}
exports.ResultsTests = ResultsTests;
module.exports = ResultsTests;

View File

@ -17,5 +17,6 @@ var RealmTestSuite = {
require('./RealmTests.js'),
require('./ResultsTests.js'),
],
testObjects: require('./TestObjects'),
}
module.exports = RealmTestSuite; // eslint-disable-line no-undef