fix registration test for invite code Signup

This commit is contained in:
Moriz Wahl 2021-03-04 20:19:10 +01:00
parent ed51c4a786
commit 5bf52e0318
2 changed files with 5 additions and 4 deletions

View File

@ -15,7 +15,8 @@ beforeEach(async () => {
variables = {}
})
beforeAll(() => {
beforeAll(async () => {
await cleanDatabase()
const { server } = createServer({
context: () => {
return {
@ -34,8 +35,8 @@ afterEach(async () => {
describe('Signup', () => {
const mutation = gql`
mutation($email: String!) {
Signup(email: $email) {
mutation($email: String!, $inviteCode: String) {
Signup(email: $email, inviteCode: $inviteCode) {
email
}
}

View File

@ -9,7 +9,7 @@ type Query {
}
type Mutation {
Signup(email: String!, inviteCode: String): EmailAddress
Signup(email: String!, inviteCode: String = null): EmailAddress
SignupVerification(
nonce: String!
email: String!