Commit 23a39e74 authored by Sebastien Robin's avatar Sebastien Robin

simplify a test

parent 8569c867
...@@ -1095,12 +1095,9 @@ test ("Post", function(){ ...@@ -1095,12 +1095,9 @@ test ("Post", function(){
o.spy (o, "status", undefined, "Post without id"); o.spy (o, "status", undefined, "Post without id");
o.jio.post({}, function (err, response) { o.jio.post({}, function (err, response) {
o.f.apply(arguments); o.f.apply(arguments);
if (isUuid((err || response).id)) { var uuid = (err || response).id;
ok(true, "Uuid format"); ok(isUuid(uuid), "Uuid should look like "
} else { + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx : " + uuid);
deepEqual((err || response).id,
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "Uuid format");
}
}); });
o.tick(o); o.tick(o);
......
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