Skip to content

Commit

Permalink
test: fix a couple tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hayes committed Jun 11, 2021
1 parent 453bf7b commit 36e6146
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/converter/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ export default class GirphQLConverter {
writer.writeLine('Scalars: {');
writer.indent(() => {
scalars.forEach((type) => {
writer.writeLine(`${type.name}: { Input: never, Output: never },`);
writer.writeLine(`${type.name}: { Input: unknown, Output: unknown },`);
});
});
writer.writeLine('},');
Expand Down
4 changes: 2 additions & 2 deletions packages/converter/tests/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const builder = new SchemaBuilder<{
};
Scalars: {
Date: {
Input: never;
Output: never;
Input: unknown;
Output: unknown;
};
};
}>({});
Expand Down
1 change: 1 addition & 0 deletions packages/core/tests/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ input Example2 {
}
type Giraffe implements Animal {
a: Boolean!
age: Int!
name: String!
species: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`simple objects example schema generates expected schema 1`] = `
"type ContactInfo {
email: String!
phoneNUmber: String
phoneNumber: String
}
interface Node {
Expand All @@ -29,6 +29,7 @@ Object {
"user": Object {
"contactInfo": Object {
"email": "michael.hayes@example.com",
"phoneNumber": null,
},
"firstName": "Michael",
"id": "1",
Expand Down

0 comments on commit 36e6146

Please sign in to comment.