@@ -55,13 +55,14 @@ const testIntentsUpdate = {
5555 description : 'description_2' ,
5656 examples : [
5757 {
58- text : 'Hey, here\'s a URL ☺ http://example.com/?a=$+*^;&c=%20#!"`~ ' ,
58+ text : 'Hi ' ,
5959 } ,
6060 ] ,
6161} ;
62- const testExamplesNew = 'Oh, here\'s a URL ☺ http://example.com/?a=$+*^;&c=%20#!"`~' ;
63- const counterexampleText = 'Hey, here\'s a URL ☺ http://example.com/?a=$+*^;&c=%20#!"`~' ;
64- const counterexampleTextNew = 'Oh, here\'s a URL ☺ http://example.com/?a=$+*^;&c=%20#!"`~' ;
62+ const testExampleText = 'Hey' ;
63+ const testExamplesNew = 'Oh, hey there' ;
64+ const counterexampleText = 'Hey' ;
65+ const counterexampleTextNew = 'Oh, hey there' ;
6566const testEntities = [
6667 {
6768 entity : 'entity_1' ,
@@ -405,13 +406,13 @@ describe('assistant v1 integration', () => {
405406 const params = {
406407 workspaceId : workspace1 . workspaceId ,
407408 intent : testIntentsUpdate . intent ,
408- text : 'new_example' ,
409+ text : testExampleText ,
409410 } ;
410411
411412 const res = await assistant . createExample ( params ) ;
412413 const { result } = res || { } ;
413414 expect ( result ) . toBeDefined ( ) ;
414- expect ( result . text ) . toBe ( 'new_example' ) ;
415+ expect ( result . text ) . toBe ( testExampleText ) ;
415416 } ) ;
416417 } ) ;
417418
@@ -423,13 +424,13 @@ describe('assistant v1 integration', () => {
423424 const params = {
424425 workspaceId : workspace1 . workspaceId ,
425426 intent : testIntentsUpdate . intent ,
426- text : testIntentsUpdate . examples [ 0 ] . text ,
427+ text : testExampleText ,
427428 } ;
428429
429430 const res = await assistant . getExample ( params ) ;
430431 const { result } = res || { } ;
431432 expect ( result ) . toBeDefined ( ) ;
432- expect ( result . text ) . toBe ( testIntentsUpdate . examples [ 0 ] . text ) ;
433+ expect ( result . text ) . toBe ( testExampleText ) ;
433434 } ) ;
434435 } ) ;
435436
@@ -441,7 +442,7 @@ describe('assistant v1 integration', () => {
441442 const params = {
442443 workspaceId : workspace1 . workspaceId ,
443444 intent : testIntentsUpdate . intent ,
444- text : testIntentsUpdate . examples [ 0 ] . text ,
445+ text : testExampleText ,
445446 newText : testExamplesNew ,
446447 } ;
447448
0 commit comments