Make an error message test less specific to accomodate platform differences

This commit is contained in:
Thomas Goyne 2017-09-26 13:12:08 -07:00
parent cf0f0d127f
commit fbf5da388b
1 changed files with 1 additions and 1 deletions

View File

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