Skip to content

Commit fb6dc54

Browse files
committed
chore(deps): update dependency prettier to v2.3.0
1 parent 3754c28 commit fb6dc54

File tree

63 files changed

+1078
-1204
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1078
-1204
lines changed

examples/auth/e2e/tag.resolver.spec.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,11 +1107,8 @@ describe('TagResolver (auth - e2e)', () => {
11071107
})
11081108
.expect(200)
11091109
.then(({ body }) => {
1110-
const {
1111-
edges,
1112-
pageInfo,
1113-
totalCount,
1114-
}: CursorConnectionType<TodoItemDTO> = body.data.addTodoItemsToTag.todoItems;
1110+
const { edges, pageInfo, totalCount }: CursorConnectionType<TodoItemDTO> =
1111+
body.data.addTodoItemsToTag.todoItems;
11151112
expect(body.data.addTodoItemsToTag.id).toBe('1');
11161113
expect(pageInfo).toEqual({
11171114
endCursor: 'YXJyYXljb25uZWN0aW9uOjQ=',
@@ -1181,11 +1178,8 @@ describe('TagResolver (auth - e2e)', () => {
11811178
})
11821179
.expect(200)
11831180
.then(({ body }) => {
1184-
const {
1185-
edges,
1186-
pageInfo,
1187-
totalCount,
1188-
}: CursorConnectionType<TodoItemDTO> = body.data.removeTodoItemsFromTag.todoItems;
1181+
const { edges, pageInfo, totalCount }: CursorConnectionType<TodoItemDTO> =
1182+
body.data.removeTodoItemsFromTag.todoItems;
11891183
expect(body.data.removeTodoItemsFromTag.id).toBe('1');
11901184
expect(pageInfo).toEqual({
11911185
endCursor: 'YXJyYXljb25uZWN0aW9uOjE=',

examples/auth/e2e/todo-item.resolver.spec.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,11 +1614,8 @@ describe('TodoItemResolver (auth - e2e)', () => {
16141614
})
16151615
.expect(200)
16161616
.then(({ body }) => {
1617-
const {
1618-
edges,
1619-
pageInfo,
1620-
totalCount,
1621-
}: CursorConnectionType<SubTaskDTO> = body.data.addSubTasksToTodoItem.subTasks;
1617+
const { edges, pageInfo, totalCount }: CursorConnectionType<SubTaskDTO> =
1618+
body.data.addSubTasksToTodoItem.subTasks;
16221619
expect(body.data.addSubTasksToTodoItem.id).toBe('1');
16231620
expect(pageInfo).toEqual({
16241621
endCursor: 'YXJyYXljb25uZWN0aW9uOjU=',

examples/federation/tag-graphql/e2e/tag.resolver.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,8 @@ describe('Federated - TagResolver (e2e)', () => {
9393
})
9494
.expect(200)
9595
.then(({ body }) => {
96-
const {
97-
edges,
98-
pageInfo,
99-
}: CursorConnectionType<TagTodoItemDTO & { todoItem: TodoItemReferenceDTO }> = body.data.tag.tagTodoItems;
96+
const { edges, pageInfo }: CursorConnectionType<TagTodoItemDTO & { todoItem: TodoItemReferenceDTO }> =
97+
body.data.tag.tagTodoItems;
10098
expect(pageInfo).toEqual({
10199
endCursor: 'YXJyYXljb25uZWN0aW9uOjE=',
102100
hasNextPage: false,

examples/hooks/src/hooks.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ interface UpdatedBy {
2323

2424
@Injectable()
2525
export class CreatedByHook<T extends CreatedBy>
26-
implements BeforeCreateOneHook<T, GqlContext>, BeforeCreateManyHook<T, GqlContext> {
26+
implements BeforeCreateOneHook<T, GqlContext>, BeforeCreateManyHook<T, GqlContext>
27+
{
2728
constructor(readonly authService: AuthService) {}
2829

2930
run(instance: CreateManyInputType<T>, context: GqlContext): Promise<CreateManyInputType<T>>;
@@ -46,7 +47,8 @@ export class CreatedByHook<T extends CreatedBy>
4647

4748
@Injectable()
4849
export class UpdatedByHook<T extends UpdatedBy>
49-
implements BeforeUpdateOneHook<T, GqlContext>, BeforeUpdateManyHook<T, T, GqlContext> {
50+
implements BeforeUpdateOneHook<T, GqlContext>, BeforeUpdateManyHook<T, T, GqlContext>
51+
{
5052
constructor(readonly authService: AuthService) {}
5153

5254
run(instance: UpdateOneInputType<T>, context: GqlContext): Promise<UpdateOneInputType<T>>;

examples/offset-paging/e2e/tag.resolver.spec.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -569,10 +569,8 @@ describe('TagResolver (limitOffset - e2e)', () => {
569569
})
570570
.expect(200)
571571
.then(({ body }) => {
572-
const {
573-
id,
574-
todoItems,
575-
}: { id: string; todoItems: OffsetConnectionType<TodoItemDTO> } = body.data.addTodoItemsToTag;
572+
const { id, todoItems }: { id: string; todoItems: OffsetConnectionType<TodoItemDTO> } =
573+
body.data.addTodoItemsToTag;
576574
expect(id).toBe('1');
577575
expect(todoItems.nodes).toHaveLength(5);
578576
expect(todoItems.nodes.map((e) => e.title).sort()).toEqual([
@@ -608,10 +606,8 @@ describe('TagResolver (limitOffset - e2e)', () => {
608606
})
609607
.expect(200)
610608
.then(({ body }) => {
611-
const {
612-
id,
613-
todoItems,
614-
}: { id: string; todoItems: OffsetConnectionType<TodoItemDTO> } = body.data.removeTodoItemsFromTag;
609+
const { id, todoItems }: { id: string; todoItems: OffsetConnectionType<TodoItemDTO> } =
610+
body.data.removeTodoItemsFromTag;
615611
expect(id).toBe('1');
616612
expect(todoItems.nodes).toHaveLength(2);
617613
expect(todoItems.nodes.map((e) => e.title).sort()).toEqual(['Create Entity', 'Create Nest App']);

examples/offset-paging/e2e/todo-item.resolver.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -658,10 +658,8 @@ describe('TodoItemResolver (limitOffset - e2e)', () => {
658658
})
659659
.expect(200)
660660
.then(({ body }) => {
661-
const {
662-
id,
663-
subTasks,
664-
}: { id: string; subTasks: OffsetConnectionType<SubTaskDTO> } = body.data.addSubTasksToTodoItem;
661+
const { id, subTasks }: { id: string; subTasks: OffsetConnectionType<SubTaskDTO> } =
662+
body.data.addSubTasksToTodoItem;
665663
expect(id).toBe('1');
666664
expect(subTasks.nodes).toHaveLength(6);
667665
subTasks.nodes.forEach((e) => expect(e.todoItemId).toBe('1'));

examples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"@types/passport-local": "1.0.33",
6060
"@types/supertest": "2.0.11",
6161
"jest": "26.6.3",
62-
"prettier": "2.2.1",
62+
"prettier": "2.3.0",
6363
"supertest": "6.1.3",
6464
"ts-jest": "26.5.6",
6565
"ts-loader": "9.1.2",

examples/sequelize/e2e/tag.resolver.spec.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -756,11 +756,8 @@ describe('TagResolver (sequelize - e2e)', () => {
756756
})
757757
.expect(200)
758758
.then(({ body }) => {
759-
const {
760-
edges,
761-
pageInfo,
762-
totalCount,
763-
}: CursorConnectionType<TodoItemDTO> = body.data.addTodoItemsToTag.todoItems;
759+
const { edges, pageInfo, totalCount }: CursorConnectionType<TodoItemDTO> =
760+
body.data.addTodoItemsToTag.todoItems;
764761
expect(body.data.addTodoItemsToTag.id).toBe('1');
765762
expect(pageInfo).toEqual({
766763
endCursor: 'YXJyYXljb25uZWN0aW9uOjQ=',
@@ -805,11 +802,8 @@ describe('TagResolver (sequelize - e2e)', () => {
805802
})
806803
.expect(200)
807804
.then(({ body }) => {
808-
const {
809-
edges,
810-
pageInfo,
811-
totalCount,
812-
}: CursorConnectionType<TodoItemDTO> = body.data.removeTodoItemsFromTag.todoItems;
805+
const { edges, pageInfo, totalCount }: CursorConnectionType<TodoItemDTO> =
806+
body.data.removeTodoItemsFromTag.todoItems;
813807
expect(body.data.removeTodoItemsFromTag.id).toBe('1');
814808
expect(pageInfo).toEqual({
815809
endCursor: 'YXJyYXljb25uZWN0aW9uOjE=',

examples/sequelize/e2e/todo-item.resolver.spec.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,11 +1130,8 @@ describe('TodoItemResolver (sequelize - e2e)', () => {
11301130
})
11311131
.expect(200)
11321132
.then(({ body }) => {
1133-
const {
1134-
edges,
1135-
pageInfo,
1136-
totalCount,
1137-
}: CursorConnectionType<SubTaskDTO> = body.data.addSubTasksToTodoItem.subTasks;
1133+
const { edges, pageInfo, totalCount }: CursorConnectionType<SubTaskDTO> =
1134+
body.data.addSubTasksToTodoItem.subTasks;
11381135
expect(body.data.addSubTasksToTodoItem.id).toBe('1');
11391136
expect(pageInfo).toEqual({
11401137
endCursor: 'YXJyYXljb25uZWN0aW9uOjU=',

examples/typegoose/e2e/todo-item.resolver.spec.ts

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -329,72 +329,6 @@ describe('TodoItemResolver (typegoose - e2e)', () => {
329329
]);
330330
}));
331331

332-
// it(`should allow querying on subTasks`, () => {
333-
// return request(app.getHttpServer())
334-
// .post('/graphql')
335-
// .send({
336-
// operationName: null,
337-
// variables: {},
338-
// query: `{
339-
// todoItems(filter: { subTasks: { title: { in: ["Create Nest App - Sub Task 1", "Create Entity - Sub Task 1"] } } }) {
340-
// ${pageInfoField}
341-
// ${edgeNodes(todoItemFields)}
342-
// totalCount
343-
// }
344-
// }`,
345-
// })
346-
// .expect(200)
347-
// .then(({ body }) => {
348-
// const { edges, totalCount, pageInfo }: CursorConnectionType<TodoItemDTO> = body.data.todoItems;
349-
// expect(pageInfo).toEqual({
350-
// endCursor: 'eyJ0eXBlIjoia2V5c2V0IiwiZmllbGRzIjpbeyJmaWVsZCI6ImlkIiwidmFsdWUiOjJ9XX0=',
351-
// hasNextPage: false,
352-
// hasPreviousPage: false,
353-
// startCursor: 'eyJ0eXBlIjoia2V5c2V0IiwiZmllbGRzIjpbeyJmaWVsZCI6ImlkIiwidmFsdWUiOjF9XX0=',
354-
// });
355-
// expect(totalCount).toBe(2);
356-
// expect(edges).toHaveLength(2);
357-
//
358-
// expect(edges.map((e) => e.node)).toEqual([
359-
// { id: '1', title: 'Create Nest App', completed: true, description: null, age: expect.any(Number) },
360-
// { id: '2', title: 'Create Entity', completed: false, description: null, age: expect.any(Number) },
361-
// ]);
362-
// });
363-
// });
364-
//
365-
// it(`should allow querying on tags`, () => {
366-
// return request(app.getHttpServer())
367-
// .post('/graphql')
368-
// .send({
369-
// operationName: null,
370-
// variables: {},
371-
// query: `{
372-
// todoItems(filter: { tags: { name: { eq: "Home" } } }, sorting: [{field: id, direction: ASC}]) {
373-
// ${pageInfoField}
374-
// ${edgeNodes(todoItemFields)}
375-
// totalCount
376-
// }
377-
// }`,
378-
// })
379-
// .expect(200)
380-
// .then(({ body }) => {
381-
// const { edges, totalCount, pageInfo }: CursorConnectionType<TodoItemDTO> = body.data.todoItems;
382-
// expect(pageInfo).toEqual({
383-
// endCursor: 'eyJ0eXBlIjoia2V5c2V0IiwiZmllbGRzIjpbeyJmaWVsZCI6ImlkIiwidmFsdWUiOjR9XX0=',
384-
// hasNextPage: false,
385-
// hasPreviousPage: false,
386-
// startCursor: 'eyJ0eXBlIjoia2V5c2V0IiwiZmllbGRzIjpbeyJmaWVsZCI6ImlkIiwidmFsdWUiOjF9XX0=',
387-
// });
388-
// expect(totalCount).toBe(2);
389-
// expect(edges).toHaveLength(2);
390-
//
391-
// expect(edges.map((e) => e.node)).toEqual([
392-
// { id: '1', title: 'Create Nest App', completed: true, description: null, age: expect.any(Number) },
393-
// { id: '4', title: 'Add Todo Item Resolver', completed: false, description: null, age: expect.any(Number) },
394-
// ]);
395-
// });
396-
// });
397-
398332
it(`should allow sorting`, () =>
399333
request(app.getHttpServer())
400334
.post('/graphql')

0 commit comments

Comments
 (0)