Skip to content

Commit

Permalink
feat(2756): formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
koekiebox committed Jul 15, 2024
1 parent c0529f0 commit 5604398
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 37 deletions.
68 changes: 34 additions & 34 deletions packages/backend/src/graphql/resolvers/accounting_transfer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,43 +168,43 @@ describe('Accounting Transfer', (): void => {
// Credit:
const accountCreditId = accountCreditLedger[0].id
response = await appContainer.apolloClient
.query({
query: gql`
.query({
query: gql`
query AccountingTransfers($id: String!, $limit: Int!) {
accountingTransfers(id: $id, limit: $limit) {
debits {
id
debitAccount
creditAccount
amount
transferType
ledger
createdAt
}
credits {
id
debitAccount
creditAccount
amount
transferType
ledger
createdAt
}
accountingTransfers(id: $id, limit: $limit) {
debits {
id
debitAccount
creditAccount
amount
transferType
ledger
createdAt
}
credits {
id
debitAccount
creditAccount
amount
transferType
ledger
createdAt
}
}
}
`,
variables: {
id: accountCreditId,
limit: queryLimit
}
})
.then((query): AccountingTransferConnection => {
if (query.data) {
return query.data.accountingTransfers
} else {
throw new Error('Data was empty')
}
})
`,
variables: {
id: accountCreditId,
limit: queryLimit
}
})
.then((query): AccountingTransferConnection => {
if (query.data) {
return query.data.accountingTransfers
} else {
throw new Error('Data was empty')
}
})

expect(response.debits).toBeDefined()
expect(response.credits).toBeDefined()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ export function transferToGraphql(
}
}

function transferTypeToGraphql(
type: TransferType
): SchemaTransferType {
function transferTypeToGraphql(type: TransferType): SchemaTransferType {
switch (type) {
case TransferType.TRANSFER:
return SchemaTransferType.Transfer
Expand Down

0 comments on commit 5604398

Please sign in to comment.