Fix reminder in test TransactionLinkResolver.test.ts of merging master – login is now a mutation – again, sorry

This commit is contained in:
Wolfgang Huß 2022-10-13 12:48:18 +02:00
parent 3477c009ae
commit e56ba75ee3

View File

@ -11,13 +11,12 @@ import { ContributionLink as DbContributionLink } from '@entity/ContributionLink
import Decimal from 'decimal.js-light' import Decimal from 'decimal.js-light'
import { GraphQLError } from 'graphql' import { GraphQLError } from 'graphql'
let mutate: any, query: any, con: any let mutate: any, con: any
let testEnv: any let testEnv: any
beforeAll(async () => { beforeAll(async () => {
testEnv = await testEnvironment() testEnv = await testEnvironment()
mutate = testEnv.mutate mutate = testEnv.mutate
query = testEnv.query
con = testEnv.con con = testEnv.con
await cleanDB() await cleanDB()
await userFactory(testEnv, bibiBloxberg) await userFactory(testEnv, bibiBloxberg)
@ -35,8 +34,8 @@ describe('TransactionLinkResolver', () => {
let contributionLink: DbContributionLink | undefined let contributionLink: DbContributionLink | undefined
beforeAll(async () => { beforeAll(async () => {
await query({ await mutate({
query: login, mutation: login,
variables: { email: 'peter@lustig.de', password: 'Aa12345_' }, variables: { email: 'peter@lustig.de', password: 'Aa12345_' },
}) })
await mutate({ await mutate({