mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
fix registration test for invite code Signup
This commit is contained in:
parent
ed51c4a786
commit
5bf52e0318
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@ -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!
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user