added error handling in lawnchair dao

This commit is contained in:
Tankred Hase 2013-05-23 23:14:30 +02:00
parent 5c1b89dfc9
commit eaddd674b9
1 changed files with 20 additions and 20 deletions

View File

@ -19,8 +19,8 @@ asyncTest("CRUD object literal", 4, function() {
var key = 'type_asdf';
var data = {
name : 'testName',
type : 'testType'
name: 'testName',
type: 'testType'
};
// create
@ -31,7 +31,7 @@ asyncTest("CRUD object literal", 4, function() {
equal(data.name, read.name, 'Create, Read');
// list all
lawnchairdao_test.jsonDao.list('type',0 ,null, function(list) {
lawnchairdao_test.jsonDao.list('type', 0, null, function(list) {
ok(list.length === 1, 'List');
// update