Skip to content
Snippets Groups Projects
Commit 40b681ad authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

Add a unit test to check invalid request /wot/requirements/:search?pubkey=true

parent db0822b3
Branches
No related tags found
1 merge request!1422Optimize response time of `/wot/requirements/:search`
......@@ -327,6 +327,10 @@ describe("Identities collision", function() {
});
});
it('requirements by invalid pubkey', function() {
return expectError(404, "No identity matching this pubkey or uid", rp('http://127.0.0.1:7799/wot/requirements/cat?pubkey=true', { json: true }));
});
it('should have certified-by/tic giving results', function() {
return expectAnswer(rp('http://127.0.0.1:7799/wot/certified-by/tic', { json: true }), function(res:HttpCertifications) {
res.should.have.property('pubkey').equal('DNann1Lh55eZMEDXeYt59bzHbA3NJR46DeQYCS2qQdLV');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment