From 36382ecb56061a86b0ccd57b8b995602e3085f58 Mon Sep 17 00:00:00 2001 From: Scott Kyle Date: Wed, 21 Oct 2015 15:17:55 -0700 Subject: [PATCH] Add instanceof test for Results --- tests/ResultsTests.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ResultsTests.js b/tests/ResultsTests.js index c3180c24..b49bca85 100644 --- a/tests/ResultsTests.js +++ b/tests/ResultsTests.js @@ -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]});