@@ -5,12 +5,12 @@ import { InMemoryCache } from '@apollo/client';
55import {
66 ActivityTypeEnum ,
77 Contact ,
8- NotificationTimeUnitEnum ,
9- NotificationTypeEnum ,
10- Task ,
118} from '../../../../../graphql/types.generated' ;
129import { getTasksForTaskListMock } from '../../List/List.mock' ;
13- import { GetTasksForTaskListDocument } from '../../List/TaskList.generated' ;
10+ import {
11+ GetTasksForTaskListDocument ,
12+ GetTasksForTaskListQuery ,
13+ } from '../../List/TaskList.generated' ;
1414import {
1515 getDataForTaskDrawerMock ,
1616 createTaskMutationMock ,
@@ -72,7 +72,7 @@ export const Loading = (): ReactElement => {
7272 ) ;
7373} ;
7474
75- const task : Task = {
75+ const task : GetTasksForTaskListQuery [ 'tasks' ] [ 'nodes' ] [ 0 ] = {
7676 id : 'task-1' ,
7777 activityType : ActivityTypeEnum . NewsletterEmail ,
7878 subject : 'On the Journey with the Johnson Family' ,
@@ -84,28 +84,12 @@ const task: Task = {
8484 { id : 'contact-1' , name : 'Anderson, Robert' } as Contact ,
8585 { id : 'contact-2' , name : 'Smith, John' } as Contact ,
8686 ] ,
87- pageInfo : { hasNextPage : false , hasPreviousPage : false } ,
88- totalCount : 2 ,
89- totalPageCount : 1 ,
9087 } ,
9188 user : {
9289 id : 'user-1' ,
9390 firstName : 'Anderson' ,
9491 lastName : 'Robert' ,
95- createdAt : 'date-1' ,
96- updatedAt : 'date-2' ,
97- } ,
98- notificationTimeBefore : 20 ,
99- notificationType : NotificationTypeEnum . Both ,
100- notificationTimeUnit : NotificationTimeUnitEnum . Hours ,
101- comments : {
102- nodes : [ ] ,
103- pageInfo : { hasNextPage : false , hasPreviousPage : false } ,
104- totalCount : 0 ,
105- totalPageCount : 0 ,
10692 } ,
107- createdAt : 'date-1' ,
108- updatedAt : 'date-2' ,
10993} ;
11094
11195export const Persisted = ( ) : ReactElement => {
0 commit comments