mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-11 06:46:03 +00:00
Add tests for closed-realm access protection
This commit is contained in:
parent
50d8a55d3f
commit
bf85c285a0
@ -654,6 +654,18 @@ module.exports = {
|
||||
TestCase.assertThrows(function() {
|
||||
realm.objects(InvalidPerson);
|
||||
});
|
||||
|
||||
var person = realm.objects('PersonObject')[0];
|
||||
|
||||
realm.close();
|
||||
|
||||
TestCase.assertThrows(function() {
|
||||
console.log("Name: ", person.name);
|
||||
});
|
||||
|
||||
TestCase.assertThrows(function() {
|
||||
realm.objects('PersonObject');
|
||||
});
|
||||
},
|
||||
|
||||
testRealmObjectForPrimaryKey: function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user