mirror of https://github.com/moparisthebest/mail
added error handling in lawnchair dao
This commit is contained in:
parent
5c1b89dfc9
commit
eaddd674b9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue