mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
update schema types for backwards compatibility with current schema
This commit is contained in:
@@ -6,7 +6,7 @@ import {
|
||||
addMockSystemToRepository
|
||||
} from "../testHelpers/repositorySetupHelpers";
|
||||
import assert = require("node:assert");
|
||||
import { NotificationSchedulingArguments } from "../../src/generated/graphql";
|
||||
import { NotificationInput } from "../../src/generated/graphql";
|
||||
|
||||
describe("MutationResolvers", () => {
|
||||
const holder = setupTestServerHolder()
|
||||
@@ -25,7 +25,7 @@ describe("MutationResolvers", () => {
|
||||
|
||||
describe("scheduleNotification", () => {
|
||||
const query = `
|
||||
mutation ScheduleNotification($input: NotificationSchedulingArguments!) {
|
||||
mutation ScheduleNotification($input: NotificationInput!) {
|
||||
scheduleNotification(input: $input) {
|
||||
success
|
||||
message
|
||||
@@ -38,7 +38,7 @@ describe("MutationResolvers", () => {
|
||||
}
|
||||
`
|
||||
|
||||
function assertFailedResponse(response: any, notificationInput: NotificationSchedulingArguments) {
|
||||
function assertFailedResponse(response: any, notificationInput: NotificationInput) {
|
||||
assert(response.body.kind === "single");
|
||||
expect(response.body.singleResult.errors).toBeUndefined();
|
||||
const notificationResponse = response.body.singleResult.data?.scheduleNotification as any;
|
||||
@@ -126,7 +126,7 @@ describe("MutationResolvers", () => {
|
||||
|
||||
describe("cancelNotification", () => {
|
||||
const query = `
|
||||
mutation CancelNotification($input: NotificationLookupArguments!) {
|
||||
mutation CancelNotification($input: NotificationInput!) {
|
||||
cancelNotification(input: $input) {
|
||||
success
|
||||
message
|
||||
|
||||
@@ -98,7 +98,7 @@ describe("QueryResolvers", () => {
|
||||
|
||||
describe("isNotificationScheduled and secondsThresholdForNotification", () => {
|
||||
const query = `
|
||||
query IsNotificationScheduled($input: NotificationLookupArguments!) {
|
||||
query IsNotificationScheduled($input: NotificationInput!) {
|
||||
isNotificationScheduled(input: $input)
|
||||
secondsThresholdForNotification(input: $input)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user