diff --git a/src/js/dao/lawnchair-dao.js b/src/js/dao/lawnchair-dao.js index 94f93a2..e8637ed 100644 --- a/src/js/dao/lawnchair-dao.js +++ b/src/js/dao/lawnchair-dao.js @@ -46,7 +46,7 @@ define(['lawnchair', 'lawnchairSQL', 'lawnchairIDB'], function(Lawnchair) { if (o) { callback(o.object); } else { - callback(null); + callback(); } }); }; diff --git a/test/unit/lawnchair-dao-test.js b/test/unit/lawnchair-dao-test.js index ea9a918..1ed9675 100644 --- a/test/unit/lawnchair-dao-test.js +++ b/test/unit/lawnchair-dao-test.js @@ -53,7 +53,7 @@ define(['js/dao/lawnchair-dao'], function(jsonDao) { // should read empty jsonDao.read(key, function(lastRead) { - equal(lastRead, null, 'Delete'); + equal(lastRead, undefined, 'Delete'); start(); });