Commit 3507734e authored by Tristan Cavelier's avatar Tristan Cavelier

jslint gidstorage tests

parent ef74a9ac
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
o.local_jio.put({"_id": "red", "creator": ["a", "b"], "title": "water"}); o.local_jio.put({"_id": "red", "creator": ["a", "b"], "title": "water"});
o.local_jio.put({"_id": "yellow", "creator": ["c", "d"], "title": "wind"}); o.local_jio.put({"_id": "yellow", "creator": ["c", "d"], "title": "wind"});
o.local_jio.put({"_id": "purple", "creator": ["s", "d"], "title": "fire"}); o.local_jio.put({"_id": "purple", "creator": ["s", "d"], "title": "fire"});
o.local_jio.put({"_id": "blue", "title": "space"}) o.local_jio.put({"_id": "blue", "title": "space"});
o.clock.tick(3000); o.clock.tick(3000);
util.closeAndcleanUpJio(o.local_jio); util.closeAndcleanUpJio(o.local_jio);
...@@ -271,8 +271,8 @@ ...@@ -271,8 +271,8 @@
}, o.f); }, o.f);
o.tick(o); o.tick(o);
// Check if the local storage document is well updated to make sure the second // Check if the local storage document is well updated to make sure the
// put did not update the wrong document. // second put did not update the wrong document.
o.spy(o, 'value', { o.spy(o, 'value', {
"_id": "blue", "_id": "blue",
"creator": "a", "creator": "a",
...@@ -521,8 +521,8 @@ ...@@ -521,8 +521,8 @@
o.clock.tick(2000); o.clock.tick(2000);
// Fail to remove attachment because given gid doesn't respect constraints // Fail to remove attachment because given gid doesn't respect constraints
o.spy(o, 'status', 400, 'Remove attachment without respecting constraints ' + o.spy(o, 'status', 400, 'Remove attachment without respecting ' +
'-> bad request'); 'constraints -> bad request');
o.jio.removeAttachment({ o.jio.removeAttachment({
"_id": "a", "_id": "a",
"_attachment": "body", "_attachment": "body",
......
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