Add instanceof test for Results

This commit is contained in:
Scott Kyle 2015-10-21 15:17:55 -07:00
parent 2e592bc101
commit 36382ecb56
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@ module.exports = BaseTest.extend({
TestCase.assertEqual(people[2], undefined);
TestCase.assertEqual(people[-1], undefined);
TestCase.assertTrue(Object.getPrototypeOf(people[0]) === schemas.PersonObject.prototype);
TestCase.assertTrue(people[0] instanceof schemas.PersonObject);
},
testResultsInvalidProperty: function() {
var realm = new Realm({schema: [schemas.TestObject]});