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 key = 'type_asdf';
|
||||||
var data = {
|
var data = {
|
||||||
name : 'testName',
|
name: 'testName',
|
||||||
type : 'testType'
|
type: 'testType'
|
||||||
};
|
};
|
||||||
|
|
||||||
// create
|
// create
|
||||||
|
@ -31,7 +31,7 @@ asyncTest("CRUD object literal", 4, function() {
|
||||||
equal(data.name, read.name, 'Create, Read');
|
equal(data.name, read.name, 'Create, Read');
|
||||||
|
|
||||||
// list all
|
// 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');
|
ok(list.length === 1, 'List');
|
||||||
|
|
||||||
// update
|
// update
|
||||||
|
|
Loading…
Reference in New Issue