From fbf5da388b041d39aa16c450521a19889648e292 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 26 Sep 2017 13:12:08 -0700 Subject: [PATCH] Make an error message test less specific to accomodate platform differences --- tests/js/list-tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/js/list-tests.js b/tests/js/list-tests.js index 7b012f2f..e7a84420 100644 --- a/tests/js/list-tests.js +++ b/tests/js/list-tests.js @@ -292,7 +292,7 @@ module.exports = { TestCase.assertThrowsContaining(() => obj.arrayCol = [person], "Object of type (PersonObject) does not match List type (TestObject)"); TestCase.assertThrowsContaining(() => obj.arrayCol = personList, - "LinkTypesObject.arrayCol must be of type 'TestObject[]', got 'object' (a)"); + "LinkTypesObject.arrayCol must be of type 'TestObject[]', got 'object' ("); obj.arrayCol = [realm.create('TestObject', {doubleCol: 1.0})] TestCase.assertEqual(obj.arrayCol[0].doubleCol, 1.0); obj.arrayCol = obj.arrayCol;