mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-17 09:06:26 +00:00
Fix a test which tried to use a bool primary key
This commit is contained in:
parent
9c1b04f8e5
commit
886949472d
@ -445,8 +445,8 @@ module.exports = {
|
||||
});
|
||||
|
||||
// primary key
|
||||
IndexedSchema.properties = { boolCol: {type: 'bool', indexed: true} };
|
||||
IndexedSchema.primaryKey = 'boolCol';
|
||||
IndexedSchema.properties = { intCol: {type: 'int', indexed: true} };
|
||||
IndexedSchema.primaryKey = 'intCol';
|
||||
|
||||
// Test this doesn't throw
|
||||
new Realm({schema: [IndexedSchema], path: '5.realm'});
|
||||
|
Loading…
x
Reference in New Issue
Block a user