update schema types for backwards compatibility with current schema

This commit is contained in:
2025-03-25 16:16:18 -07:00
parent 717575e004
commit 4d74027b0e
3 changed files with 10 additions and 16 deletions

View File

@@ -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

View File

@@ -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)
}