Update backend/src/graphql/resolver/UserResolver.test.ts

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
This commit is contained in:
Moriz Wahl 2023-02-24 14:16:41 +01:00 committed by GitHub
parent 3afc7b08fa
commit 19a980b47b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1220,7 +1220,7 @@ describe('UserResolver', () => {
})
afterAll(async () => {
const [user] = await User.find({ id: peter.id })
const user = await User.findOne({ id: peter.id })
await user.remove()
})