1
0
Fork 0

fixed tests

This commit is contained in:
Jan Steemann 2013-06-20 19:14:35 +02:00
parent b1f243d296
commit 959bb653e2
1 changed files with 7 additions and 3 deletions

View File

@ -52,7 +52,9 @@ function DatabaseSuite () {
////////////////////////////////////////////////////////////////////////////////
testName : function () {
assertEqual("_system", internal.db._name());
if (internal.db.hasOwnProperty('_name')) {
assertEqual("_system", internal.db._name());
}
},
////////////////////////////////////////////////////////////////////////////////
@ -60,8 +62,10 @@ function DatabaseSuite () {
////////////////////////////////////////////////////////////////////////////////
testPath : function () {
assertTrue(typeof internal.db._path() === "string");
assertTrue(internal.db._path() !== "");
if (internal.db.hasOwnProperty('_path')) {
assertTrue(typeof internal.db._path() === "string");
assertTrue(internal.db._path() !== "");
}
},
////////////////////////////////////////////////////////////////////////////////