mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-17 10:21:31 +00:00
Add clean database
- Because of a sometimes failing test.
This commit is contained in:
parent
927e389b3a
commit
c6ec32b326
@ -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' }),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user