From 68603c2620fff376ef4a03e9c67f20097a997856 Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Fri, 2 Oct 2015 15:50:23 -0700 Subject: [PATCH] fix exports --- tests/ArrayTests.js | 2 +- tests/ObjectTests.js | 2 +- tests/ReactTests/index.ios.js | 6 ++++++ tests/RealmTests.js | 2 +- tests/ResultsTests.js | 2 +- tests/index.js | 1 + 6 files changed, 11 insertions(+), 4 deletions(-) diff --git a/tests/ArrayTests.js b/tests/ArrayTests.js index 16729fbe..db3bd18a 100644 --- a/tests/ArrayTests.js +++ b/tests/ArrayTests.js @@ -250,5 +250,5 @@ var ArrayTests = { }); }, }; -exports.ArrayTests = ArrayTests; +module.exports = ArrayTests; diff --git a/tests/ObjectTests.js b/tests/ObjectTests.js index f5dbe48d..ad719b35 100644 --- a/tests/ObjectTests.js +++ b/tests/ObjectTests.js @@ -122,4 +122,4 @@ var ObjectTests = { TestCase.assertEqual(obj.arrayCol[2].doubleCol, 2); }, }; -exports.ObjectTests = ObjectTests; +module.exports = ObjectTests; diff --git a/tests/ReactTests/index.ios.js b/tests/ReactTests/index.ios.js index f3457490..71e065cf 100644 --- a/tests/ReactTests/index.ios.js +++ b/tests/ReactTests/index.ios.js @@ -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, diff --git a/tests/RealmTests.js b/tests/RealmTests.js index bb69cca4..1d4fd286 100644 --- a/tests/RealmTests.js +++ b/tests/RealmTests.js @@ -266,5 +266,5 @@ var RealmTests = { TestCase.assertEqual(notificationCount, 1); }, }; -exports.RealmTests = RealmTests; +module.exports = RealmTests; diff --git a/tests/ResultsTests.js b/tests/ResultsTests.js index e85173fd..8d81635a 100644 --- a/tests/ResultsTests.js +++ b/tests/ResultsTests.js @@ -100,4 +100,4 @@ var ResultsTests = { TestCase.assertEqual(objects[4].doubleCol, 0); }, } -exports.ResultsTests = ResultsTests; +module.exports = ResultsTests; diff --git a/tests/index.js b/tests/index.js index ebe95760..3e07192e 100644 --- a/tests/index.js +++ b/tests/index.js @@ -17,5 +17,6 @@ var RealmTestSuite = { require('./RealmTests.js'), require('./ResultsTests.js'), ], + testObjects: require('./TestObjects'), } module.exports = RealmTestSuite; // eslint-disable-line no-undef