Commit 339eae00 authored by Tristan Cavelier's avatar Tristan Cavelier

2 tests added to revision + local remove jiotests.js

parent e1821253
......@@ -1358,6 +1358,18 @@ test ("Remove", function(){
});
o.localpath = "jio/localstorage/urevrem/arevrem";
// remove document without revision
o.spy (o, "status", 404,
"Remove document (no doctree, no revision)");
o.jio.remove({"_id":"remove1"}, o.f);
o.tick(o);
// remove attachment without revision
o.spy (o, "status", 404,
"Remove attachment (no doctree, no revision)");
o.jio.remove({"_id":"remove1/remove2"}, o.f);
o.tick(o);
// adding two documents
o.doc_myremove1 = {"_id": "remove1", "title": "myRemove1"};
o.doc_myremove2 = {"_id": "remove1", "title": "myRemove2"};
......
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