55 broadcast ,
66 compareVersionNumbers ,
77 ContextHandler ,
8- ContextTypes ,
98 DesktopAgent ,
109 fdc3Ready ,
1110 findIntent ,
@@ -33,7 +32,7 @@ const TimeoutError = new Error('Timed out waiting for `fdc3Ready` event.');
3332const UnexpectedError = new Error ( '`fdc3Ready` event fired, but `window.fdc3` not set to DesktopAgent.' ) ;
3433
3534const ContactContext = {
36- type : ContextTypes . Contact ,
35+ type : 'fdc3.contact' ,
3736 id : { email : 'test@example.com' } ,
3837} ;
3938
@@ -163,10 +162,10 @@ describe('test ES6 module', () => {
163162 test ( 'findIntent should delegate to window.fdc3.findIntent (with additional output type argument)' , async ( ) => {
164163 const intent = 'ViewChart' ;
165164
166- await findIntent ( intent , ContactContext , ContextTypes . Contact ) ;
165+ await findIntent ( intent , ContactContext , 'fdc3.contact' ) ;
167166
168167 expect ( window . fdc3 . findIntent ) . toHaveBeenCalledTimes ( 1 ) ;
169- expect ( window . fdc3 . findIntent ) . toHaveBeenLastCalledWith ( intent , ContactContext , ContextTypes . Contact ) ;
168+ expect ( window . fdc3 . findIntent ) . toHaveBeenLastCalledWith ( intent , ContactContext , 'fdc3.contact' ) ;
170169 } ) ;
171170
172171 test ( 'findIntentsByContext should delegate to window.fdc3.findIntentsByContext' , async ( ) => {
@@ -177,10 +176,10 @@ describe('test ES6 module', () => {
177176 } ) ;
178177
179178 test ( 'findIntentsByContext should delegate to window.fdc3.findIntentsByContext (with additional output type argument)' , async ( ) => {
180- await findIntentsByContext ( ContactContext , ContextTypes . Contact ) ;
179+ await findIntentsByContext ( ContactContext , 'fdc3.contact' ) ;
181180
182181 expect ( window . fdc3 . findIntentsByContext ) . toHaveBeenCalledTimes ( 1 ) ;
183- expect ( window . fdc3 . findIntentsByContext ) . toHaveBeenLastCalledWith ( ContactContext , ContextTypes . Contact ) ;
182+ expect ( window . fdc3 . findIntentsByContext ) . toHaveBeenLastCalledWith ( ContactContext , 'fdc3.contact' ) ;
184183 } ) ;
185184
186185 test ( 'broadcast should delegate to window.fdc3.broadcast' , async ( ) => {
0 commit comments