Fix a test which tried to use a bool primary key

This commit is contained in:
Thomas Goyne 2017-08-30 13:32:54 -07:00
parent 9c1b04f8e5
commit 886949472d
1 changed files with 2 additions and 2 deletions

View File

@ -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'});