Skip to content

Commit

Permalink
fix: type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lgandecki committed Aug 21, 2023
1 parent 3ca46d7 commit 658cd9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 5 additions & 5 deletions scaffold/src/modules/RemoveMe/graphql/queries/HelloQuery.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import td from "testdouble";
import { GqlContext, QueryHelloArgs } from "~generated/graphql/types";
import { HelloQuery } from "./HelloQuery";

const testHello = (variables: QueryHelloArgs, context: GqlContext) =>
HelloQuery({}, variables, context, null);
import {
GqlContext,
QueryHelloArgs,
testHello,
} from "~generated/graphql/helpers/HelloQuerySpecWrapper";

test("Hello", async () => {
const context = td.object<GqlContext>();
Expand Down
5 changes: 4 additions & 1 deletion test-module/graphql/scalars/Odd.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { GraphQLScalarType, Kind } from "graphql";

function oddValue(value) {
function oddValue(value: unknown) {
if (typeof value !== "number") {
return null;
}
return value % 2 === 1 ? value : null;
}

Expand Down

0 comments on commit 658cd9c

Please sign in to comment.