From 515ece8fdd0b315f69ac066c3f2d1fa3f40d65fa Mon Sep 17 00:00:00 2001 From: Scott Kyle Date: Mon, 12 Oct 2015 02:42:15 -0700 Subject: [PATCH] Remove duplicated test in ArrayTests.js This must have been accidentally copy-pasted from ObjectTests.js --- tests/ArrayTests.js | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/tests/ArrayTests.js b/tests/ArrayTests.js index 667b594f..4d3f0b5f 100644 --- a/tests/ArrayTests.js +++ b/tests/ArrayTests.js @@ -19,37 +19,6 @@ 'use strict'; var ArrayTests = { - testLinkTypesPropertySetters: function() { - var realm = new Realm({schema: [LinkTypesObjectSchema, TestObjectSchema]}); - var obj = null; - realm.write(function() { - obj = realm.create('LinkTypesObject', [[1], undefined, [[3]]]); - }); - TestCase.assertEqual(realm.objects('TestObject').length, 2); - - // set/reuse object property - realm.write(function() { - obj.objectCol1 = obj.objectCol; - }); - TestCase.assertEqual(obj.objectCol1.doubleCol, 1); - //TestCase.assertEqual(obj.objectCol, obj.objectCol1); - TestCase.assertEqual(realm.objects('TestObject').length, 2); - - realm.write(function() { - obj.objectCol = undefined; - obj.objectCol1 = null; - }); - TestCase.assertEqual(obj.objectCol, null); - TestCase.assertEqual(obj.objectCol1, null); - - // set object as JSON - realm.write(function() { - obj.objectCol = { doubleCol: 3 }; - }); - TestCase.assertEqual(obj.objectCol.doubleCol, 3); - TestCase.assertEqual(realm.objects('TestObject').length, 3); - }, - testArrayLength: function() { var realm = new Realm({schema: [LinkTypesObjectSchema, TestObjectSchema]}); realm.write(function() {