Skip to content

Commit

Permalink
Use sync behavior in comparison test
Browse files Browse the repository at this point in the history
  • Loading branch information
stocaaro committed Oct 10, 2024
1 parent e5c11a1 commit a6e846b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/graphql-generator/src/__tests__/models.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ targets.forEach(target => {
schema: readSchema('blog-model.graphql'),
target,
};
const asyncGeneratorModels = await runGenerator("generateModels", options);
const syncGeneratorModels = await runGenerator("generateModelsSync", options);
const asyncGeneratorModels = await generateModels(options);
const syncGeneratorModels = generateModelsSync(options);
expect(JSON.stringify(asyncGeneratorModels)).toEqual(JSON.stringify(syncGeneratorModels));
});
});

0 comments on commit a6e846b

Please sign in to comment.