Skip to content

Commit 17273ad

Browse files
committed
test: better TS lint
1 parent e8dd710 commit 17273ad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/graphql/RecipeResolver.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ describe('RecipeResolver', () => {
3737
});
3838

3939
it('gets recipes', async () => {
40-
// create recipe
41-
const recipe = new Recipe();
42-
recipe.title = 'my test';
43-
recipe.description = 'description test';
44-
40+
// create a recipe
41+
const recipe: Omit<Recipe, 'id'> = {
42+
title: 'testing',
43+
description: 'test',
44+
};
4545
const repository = AppDataSource.getRepository(Recipe);
4646
await repository.save(recipe);
4747

0 commit comments

Comments
 (0)