Add clean database

- Because of a sometimes failing test.
This commit is contained in:
Wolfgang Huß 2020-06-25 13:33:45 +02:00
parent 927e389b3a
commit c6ec32b326

View File

@ -15,6 +15,7 @@ const action = () => {
}
beforeAll(async () => {
await cleanDatabase()
// For performance reasons we do this only once
const users = await Promise.all([
Factory.build('user', { id: 'u1', role: 'user' }),