mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
better status codes, again
This commit is contained in:
parent
0d70d93e13
commit
c7b637a05f
6 changed files with 78 additions and 7 deletions
|
|
@ -201,7 +201,7 @@ describe("Set url", function () {
|
|||
}
|
||||
});
|
||||
expect(setUrl).to.be.containsText('Invalid key');
|
||||
expect(setUrl).to.have.status(500);
|
||||
expect(setUrl).to.have.status(401);
|
||||
return chakram.wait();
|
||||
});
|
||||
});
|
||||
|
|
@ -220,7 +220,7 @@ describe("Set url", function () {
|
|||
}
|
||||
});
|
||||
expect(setUrl).to.be.containsText('Invalid demo hash');
|
||||
expect(setUrl).to.have.status(500);
|
||||
expect(setUrl).to.have.status(412);
|
||||
return chakram.wait();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue