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,8 +82,11 @@ before("reset db", function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach("create test user", function () {
|
beforeEach("create test user", function () {
|
||||||
|
chakram.post("reset");
|
||||||
|
return chakram.wait().then(function() {
|
||||||
chakram.post("testuser");
|
chakram.post("testuser");
|
||||||
return chakram.wait();
|
return chakram.wait();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach("reset db", function () {
|
afterEach("reset db", function () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue