diff --git a/tests/js/object-tests.js b/tests/js/object-tests.js index dc80180c..1e29413b 100644 --- a/tests/js/object-tests.js +++ b/tests/js/object-tests.js @@ -481,12 +481,6 @@ module.exports = BaseTest.extend({ }; var realm = new Realm({path: 'dates-v3.realm', schema: [DateSchema]}); - var currentDate = new Date(); - var object; - realm.write(function() { - object = realm.create('Date', { currentDate: currentDate }); - }); - - TestCase.assertEqual(currentDate.getTime(), object.currentDate.getTime()); + TestCase.assertEqual(realm.objects('Date')[0].currentDate.getTime(), 1462500087955); } });