diff --git a/src/type/__tests__/validation-test.ts b/src/type/__tests__/validation-test.ts index 0577f89ca5e..7152cab68d8 100644 --- a/src/type/__tests__/validation-test.ts +++ b/src/type/__tests__/validation-test.ts @@ -341,11 +341,10 @@ describe('Type System: A Schema must have Object root types', () => { input SomeInputObject { test: String } - input SomeInputObject2 { - test: String - } - input SomeInputObject3 { - test: String + scalar SomeScalar + enum SomeEnum { + ENUM_VALUE_1 + ENUM_VALUE_2 } `); @@ -362,7 +361,7 @@ describe('Type System: A Schema must have Object root types', () => { schema, parse(` extend schema { - mutation: SomeInputObject2 + mutation: SomeScalar } `), ); @@ -371,7 +370,7 @@ describe('Type System: A Schema must have Object root types', () => { schema, parse(` extend schema { - subscription: SomeInputObject3 + subscription: SomeEnum } `), ); @@ -384,12 +383,12 @@ describe('Type System: A Schema must have Object root types', () => { }, { message: - 'Mutation root type must be Object type if provided, it cannot be SomeInputObject2.', + 'Mutation root type must be Object type if provided, it cannot be SomeScalar.', locations: [{ line: 3, column: 21 }], }, { message: - 'Subscription root type must be Object type if provided, it cannot be SomeInputObject3.', + 'Subscription root type must be Object type if provided, it cannot be SomeEnum.', locations: [{ line: 3, column: 25 }], }, ]);