Merge pull request #1723 from Gerharddc/patch-1
Stop Permissions being redefined and breaking Jest
This commit is contained in:
commit
6b3b34ae54
|
@ -257,10 +257,12 @@ module.exports = function(realmConstructor) {
|
|||
permissions: '__Permission[]'
|
||||
}
|
||||
});
|
||||
Object.defineProperty(realmConstructor, 'Permissions', {
|
||||
value: permissionsSchema,
|
||||
configurable: false
|
||||
});
|
||||
if (!realmConstructor.Permissions) {
|
||||
Object.defineProperty(realmConstructor, 'Permissions', {
|
||||
value: permissionsSchema,
|
||||
configurable: false
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Remove this now useless object.
|
||||
|
|
Loading…
Reference in New Issue