mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
debug seeed on stage1
This commit is contained in:
parent
e639b73283
commit
bef2badd89
25
backend/src/graphql/resolver/AdminResolver.test.ts
Normal file
25
backend/src/graphql/resolver/AdminResolver.test.ts
Normal file
@ -0,0 +1,25 @@
|
||||
import { testEnvironment, headerPushMock, resetToken, cleanDB } from '@test/helpers'
|
||||
import { seedAll } from '@/seeds/index'
|
||||
|
||||
let mutate: any, query: any, con: any
|
||||
let testEnv: any
|
||||
|
||||
beforeAll(async () => {
|
||||
testEnv = await testEnvironment()
|
||||
mutate = testEnv.mutate
|
||||
query = testEnv.query
|
||||
con = testEnv.con
|
||||
await cleanDB()
|
||||
seedAll(testEnv.testClient)
|
||||
})
|
||||
|
||||
afterAll(async () => {
|
||||
await cleanDB()
|
||||
await con.close()
|
||||
})
|
||||
|
||||
describe('AdminResolver', () => {
|
||||
it('runs', () => {
|
||||
expect(true).toBe(true)
|
||||
})
|
||||
})
|
||||
@ -283,6 +283,7 @@ export class UserResolver {
|
||||
@Args()
|
||||
{ email, firstName, lastName, language, publisherId, redeemCode = null }: CreateUserArgs,
|
||||
): Promise<User> {
|
||||
console.log('------', email)
|
||||
// TODO: wrong default value (should be null), how does graphql work here? Is it an required field?
|
||||
// default int publisher_id = 0;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user