Skip to content

Commit

Permalink
Fix loader test
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Jun 2, 2022
1 parent 4cea6a5 commit 15c2c80
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion packages/load/tests/loaders/schema/integration.spec.ts
Expand Up @@ -104,7 +104,20 @@ describe('loadSchema', () => {
const schema = await load(schemaPath, {
loaders: [new GraphQLFileLoader()],
sort: true,
schemas: [buildSchema(`scalar DateTime`)],
schemas: [
buildSchema(/* GraphQL */ `
scalar DateTime
type B {
c: String
d: DateTime
}
type Query {
b: B
}
`),
],
});
expect(printSchema(schema)).toBeSimilarGqlDoc(/* GraphQL */ `
scalar DateTime
Expand All @@ -116,10 +129,16 @@ describe('loadSchema', () => {
type Query {
a: String
b: B
d: String
z: String
}
type B {
c: String
d: DateTime
}
type User {
a: String
aa: String
Expand Down

0 comments on commit 15c2c80

Please sign in to comment.