You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('should parse followup with pre-generated response preserving HTML',()=>{
65
+
it('should parse followup with pre-generated response',()=>{
66
66
consthtml=`<followup-list>
67
67
<followup>
68
68
<followup-text>How do I set up QuickBooks?</followup-text>
69
-
<followup-response>To set up QuickBooks, go to <strong>Settings</strong> > Integrations.</followup-response>
69
+
<followup-response>To set up QuickBooks, go to Settings > Integrations...</followup-response>
70
70
</followup>
71
71
</followup-list>`;
72
-
expect(parseFollowupsFromHtml(html)).toEqual([{text: 'How do I set up QuickBooks?',response: 'To set up QuickBooks, go to <strong>Settings</strong> > Integrations.'}]);
73
-
});
74
-
75
-
it('should preserve bullet lists in pre-generated responses',()=>{
76
-
consthtml=`<followup-list>
77
-
<followup>
78
-
<followup-text>What are the steps?</followup-text>
expect(result).toEqual([{text: 'What are the steps?',response: '<ul><li>Step one</li><li>Step two</li></ul>'}]);
72
+
expect(parseFollowupsFromHtml(html)).toEqual([{text: 'How do I set up QuickBooks?',response: 'To set up QuickBooks, go to Settings > Integrations...'}]);
84
73
});
85
74
86
75
it('should parse multiple followups with mixed response availability',()=>{
0 commit comments