improve exception message

This commit is contained in:
Ari Lazier 2016-01-11 19:42:20 -08:00
parent 1c5f22bd4d
commit 211f0eddd5
1 changed files with 2 additions and 3 deletions

View File

@ -69,9 +69,8 @@ module.exports = BaseTest.extend({
var newPath = util.realmPathForFile('default2.realm'); var newPath = util.realmPathForFile('default2.realm');
Realm.defaultPath = newPath; Realm.defaultPath = newPath;
defaultRealm = new Realm({schema: []}); defaultRealm = new Realm({schema: []});
TestCase.assertEqual(defaultRealm.path, newPath); TestCase.assertEqual(defaultRealm.path, newPath, "should use updated default realm path");
TestCase.assertEqual(Realm.defaultPath, newPath); TestCase.assertEqual(Realm.defaultPath, newPath, "defaultPath should have been updated");
}, },
testRealmCreate: function() { testRealmCreate: function() {