mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-23 21:10:01 +00:00
test objectTypes
This commit is contained in:
parent
79446f957a
commit
ef11443e28
@ -618,9 +618,11 @@ module.exports = BaseTest.extend({
|
||||
var prop1 = returned.properties[propName];
|
||||
var prop2 = original.properties[propName];
|
||||
if (prop1.type == 'object') {
|
||||
TestCase.assertEqual(prop1.objectType, isString(prop2) ? prop2 : prop2.objectType);
|
||||
TestCase.assertEqual(prop1.optional, true);
|
||||
}
|
||||
else if (prop1.type == 'list') {
|
||||
TestCase.assertEqual(prop1.objectType, prop2.objectType);
|
||||
TestCase.assertEqual(prop1.optional, undefined);
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user