@@ -4,7 +4,7 @@ import { IframeWrapper } from '../IframeWrapper';
44import type { IframeConfig } from '../../lib/utils/config-parser' ;
55
66// Mock the dependencies
7- vi . mock ( '@microsoft/logicAppsChat ' , ( ) => ( {
7+ vi . mock ( '@microsoft/logic-apps-chat ' , ( ) => ( {
88 ChatWidget : vi . fn ( ( { sessionKey } ) => < div data-testid = "chat-widget" > ChatWidget (sessionKey: { sessionKey } )</ div > ) ,
99} ) ) ;
1010
@@ -57,7 +57,7 @@ describe('IframeWrapper - contextId support', () => {
5757 } ) ;
5858
5959 it ( 'should pass initialContextId to ChatWidget for single-session mode' , async ( ) => {
60- const { ChatWidget } = vi . mocked ( await import ( '@microsoft/logicAppsChat ' ) ) ;
60+ const { ChatWidget } = vi . mocked ( await import ( '@microsoft/logic-apps-chat ' ) ) ;
6161
6262 const configWithContextId : IframeConfig = {
6363 ...defaultConfig ,
@@ -89,7 +89,7 @@ describe('IframeWrapper - contextId support', () => {
8989 } ) ;
9090
9191 it ( 'should pass sessionKey to ChatWidget' , async ( ) => {
92- const { ChatWidget } = vi . mocked ( await import ( '@microsoft/logicAppsChat ' ) ) ;
92+ const { ChatWidget } = vi . mocked ( await import ( '@microsoft/logic-apps-chat ' ) ) ;
9393
9494 const configWithSessionKey : IframeConfig = {
9595 ...defaultConfig ,
@@ -112,7 +112,7 @@ describe('IframeWrapper - contextId support', () => {
112112 } ) ;
113113
114114 it ( 'should handle missing contextId gracefully' , async ( ) => {
115- const { ChatWidget } = vi . mocked ( await import ( '@microsoft/logicAppsChat ' ) ) ;
115+ const { ChatWidget } = vi . mocked ( await import ( '@microsoft/logic-apps-chat ' ) ) ;
116116
117117 const configWithoutContextId : IframeConfig = {
118118 ...defaultConfig ,
@@ -134,7 +134,7 @@ describe('IframeWrapper - contextId support', () => {
134134 } ) ;
135135
136136 it ( 'should pass contextId with custom sessionKey' , async ( ) => {
137- const { ChatWidget } = vi . mocked ( await import ( '@microsoft/logicAppsChat ' ) ) ;
137+ const { ChatWidget } = vi . mocked ( await import ( '@microsoft/logic-apps-chat ' ) ) ;
138138
139139 const configWithSessionKey : IframeConfig = {
140140 ...defaultConfig ,
0 commit comments