From 886949472d6ffae3255cab61048cca7b75bfbe97 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 30 Aug 2017 13:32:54 -0700 Subject: [PATCH] Fix a test which tried to use a bool primary key --- tests/js/realm-tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/js/realm-tests.js b/tests/js/realm-tests.js index cbd0523b..e4e9047a 100644 --- a/tests/js/realm-tests.js +++ b/tests/js/realm-tests.js @@ -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'});