Skip to content

Commit

Permalink
Update Sources/ApolloCodegenLib/Frontend/JavaScript/src/__tests__/ref…
Browse files Browse the repository at this point in the history
…erenceTypesTests.ts

Co-authored-by: Calvin Cestari <[email protected]>
  • Loading branch information
AnthonyMDev and calvincestari authored Oct 13, 2022
1 parent 4a107a1 commit f74383e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe("mutation defined using ReportCarProblemInput", () => {
const schemaJSON: string = readFileSync(join(__dirname, "./input-object-enum-test-schema.json"), 'utf-8')
const schema: GraphQLSchema = loadSchemaFromSources([new Source(schemaJSON, "TestSchema.json", { line: 1, column: 1 })]);

it("should compile with referencedTypes inlcuding SpeciesInput and Species enum", () => {
it("should compile with referencedTypes including ReportCarProblemInput and CarProblem enum", () => {
const compilationResult: CompilationResult = compileDocument(schema, document, false);
const reportCarProblemInput: GraphQLInputObjectType = compilationResult.referencedTypes.find(function(element) {
return element.name == 'ReportCarProblemInput'
Expand Down

0 comments on commit f74383e

Please sign in to comment.