@@ -16,6 +16,21 @@ type Components = ({
1616 props,
1717} : ComponentsProps ) => JSX . Element ;
1818
19+ const options = [
20+ 'None' ,
21+ 'Phone Call' ,
22+ 'Email' ,
23+ 'Text Message' ,
24+ 'Social Media' ,
25+ 'In Person' ,
26+ 'Thank You Note' ,
27+ 'Digital Newsletter' ,
28+ 'Physical Newsletter' ,
29+ 'Prayer Request' ,
30+ 'Update Information' ,
31+ 'To Do' ,
32+ ] ;
33+
1934// eslint-disable-next-line jest/no-export
2035export const taskModalTests = ( Components : Components ) => {
2136 describe ( 'Task Modal Results +Next Action' , ( ) => {
@@ -261,15 +276,15 @@ export const taskModalTests = (Components: Components) => {
261276 ActivityTypeEnum . PartnerCareEmail ,
262277 ) ;
263278 expect ( results ) . toEqual ( [ ] ) ;
264- expect ( nextActions ) . toEqual ( [ ] ) ;
279+ expect ( nextActions ) . toEqual ( options ) ;
265280 } ) ;
266281
267282 it ( 'as correct options for PartnerCarePhysicalNewsletter' , async ( ) => {
268283 const { results, nextActions } = await getOptions (
269284 ActivityTypeEnum . PartnerCarePhysicalNewsletter ,
270285 ) ;
271286 expect ( results ) . toEqual ( [ ] ) ;
272- expect ( nextActions ) . toEqual ( [ ] ) ;
287+ expect ( nextActions ) . toEqual ( options ) ;
273288 } ) ;
274289
275290 it ( 'has correct options for NONE' , async ( ) => {
@@ -283,15 +298,15 @@ export const taskModalTests = (Components: Components) => {
283298 ActivityTypeEnum . PartnerCarePrayerRequest ,
284299 ) ;
285300 expect ( results ) . toEqual ( [ ] ) ;
286- expect ( nextActions ) . toEqual ( [ ] ) ;
301+ expect ( nextActions ) . toEqual ( options ) ;
287302 } ) ;
288303
289304 it ( 'has correct options for PartnerCarePhoneCall' , async ( ) => {
290305 const { results, nextActions } = await getOptions (
291306 ActivityTypeEnum . PartnerCarePhoneCall ,
292307 ) ;
293308 expect ( results ) . toEqual ( [ ] ) ;
294- expect ( nextActions ) . toEqual ( [ ] ) ;
309+ expect ( nextActions ) . toEqual ( options ) ;
295310 } ) ;
296311
297312 it ( 'has correct options for InitiationLetter' , async ( ) => {
@@ -307,15 +322,15 @@ export const taskModalTests = (Components: Components) => {
307322 ActivityTypeEnum . PartnerCareThank ,
308323 ) ;
309324 expect ( results ) . toEqual ( [ ] ) ;
310- expect ( nextActions ) . toEqual ( [ ] ) ;
325+ expect ( nextActions ) . toEqual ( options ) ;
311326 } ) ;
312327
313328 it ( 'has correct options for PartnerCareToDo' , async ( ) => {
314329 const { results, nextActions } = await getOptions (
315330 ActivityTypeEnum . PartnerCareToDo ,
316331 ) ;
317332 expect ( results ) . toEqual ( [ ] ) ;
318- expect ( nextActions ) . toEqual ( [ ] ) ;
333+ expect ( nextActions ) . toEqual ( options ) ;
319334 } ) ;
320335 } ) ;
321336} ;
0 commit comments