[Persistence] Complete specs for CouchDB adapter

Complete test coverage for CouchDB adapter, WTD-537.
This commit is contained in:
Victor Woeltjen
2014-12-02 17:53:55 -08:00
parent bb719a137a
commit c303d29768
2 changed files with 148 additions and 5 deletions

View File

@ -38,10 +38,6 @@ define(
return request(subpath, "PUT", value);
}
function del(subpath, value) {
return request(subpath, "DELETE", value);
}
function getIdsFromAllDocs(allDocs) {
return allDocs.rows.map(function (r) { return r.id; });
}
@ -61,7 +57,7 @@ define(
revs[response.id] = response.rev;
return response.ok;
} else {
return undefined;
return false;
}
}