mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
better db resetting
This commit is contained in:
parent
03a7f0d507
commit
4f47455cfe
1 changed files with 5 additions and 2 deletions
|
|
@ -82,9 +82,12 @@ before("reset db", function () {
|
|||
});
|
||||
|
||||
beforeEach("create test user", function () {
|
||||
chakram.post("reset");
|
||||
return chakram.wait().then(function() {
|
||||
chakram.post("testuser");
|
||||
return chakram.wait();
|
||||
});
|
||||
});
|
||||
|
||||
afterEach("reset db", function () {
|
||||
chakram.post("reset");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue