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

simplify a test

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