test that conversion actually works

This commit is contained in:
Ari Lazier 2016-05-09 13:32:10 -07:00
parent 9c7b01091f
commit 21b58b6a1e
1 changed files with 1 additions and 7 deletions

View File

@ -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);
}
});