Commit 21fc131a authored by Tristan Cavelier's avatar Tristan Cavelier

revisionstorage get{,Attachment} unit tests done

parent 3ad7eaba
......@@ -503,7 +503,7 @@
priv.notFoundError = function (message, reason) {
return {
"status": "not_found",
"status": 404,
"message": message,
"reason": reason
};
......@@ -511,7 +511,7 @@
priv.conflictError = function (message, reason) {
return {
"status": "conflict",
"status": 409,
"message": message,
"reason": reason
};
......@@ -654,7 +654,7 @@
if (option.revs_info === true) {
res_doc._revs_info = doc._revs_info;
}
return onEnd(undefined, res_doc);
return onEnd(undefined, {"data": res_doc});
}
if (specific_parameter.putAttachment ||
specific_parameter.removeAttachment) {
......@@ -687,7 +687,7 @@
if (attachment_list[i] &&
doc._attachment ===
attachment_list[i]._attachment) {
return onEnd(undefined, attachment_list[i]._data);
return onEnd(undefined, {"data": attachment_list[i]._data});
}
}
return onEnd(priv.notFoundError(
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment