@@ -354,7 +354,7 @@ describe('ToolboxClient E2E Tests', () => {
354
354
it ( 'should run tool with optional params omitted' , async ( ) => {
355
355
const response = await searchRowsTool ( { email :
'[email protected] ' } ) ;
356
356
expect ( typeof response ) . toBe ( 'string' ) ;
357
- expect ( response ) . toContain ( '\\ "email\\":\\ "[email protected] \\ "' ) ;
357
+ expect ( response ) . toContain ( '"email": "[email protected] "' ) ;
358
358
expect ( response ) . not . toContain ( 'row1' ) ;
359
359
expect ( response ) . toContain ( 'row2' ) ;
360
360
expect ( response ) . not . toContain ( 'row3' ) ;
@@ -369,7 +369,7 @@ describe('ToolboxClient E2E Tests', () => {
369
369
data : 'row3' ,
370
370
} ) ;
371
371
expect ( typeof response ) . toBe ( 'string' ) ;
372
- expect ( response ) . toContain ( '\\ "email\\":\\ "[email protected] \\ "' ) ;
372
+ expect ( response ) . toContain ( '"email": "[email protected] "' ) ;
373
373
expect ( response ) . not . toContain ( 'row1' ) ;
374
374
expect ( response ) . not . toContain ( 'row2' ) ;
375
375
expect ( response ) . toContain ( 'row3' ) ;
@@ -384,7 +384,7 @@ describe('ToolboxClient E2E Tests', () => {
384
384
data : null ,
385
385
} ) ;
386
386
expect ( typeof response ) . toBe ( 'string' ) ;
387
- expect ( response ) . toContain ( '\\ "email\\":\\ "[email protected] \\ "' ) ;
387
+ expect ( response ) . toContain ( '"email": "[email protected] "' ) ;
388
388
expect ( response ) . not . toContain ( 'row1' ) ;
389
389
expect ( response ) . toContain ( 'row2' ) ;
390
390
expect ( response ) . not . toContain ( 'row3' ) ;
@@ -399,7 +399,7 @@ describe('ToolboxClient E2E Tests', () => {
399
399
id : 1 ,
400
400
} ) ;
401
401
expect ( typeof response ) . toBe ( 'string' ) ;
402
- expect ( response ) . toBe ( '{"result":" null"} ' ) ;
402
+ expect ( response ) . toBe ( 'null' ) ;
403
403
} ) ;
404
404
405
405
it ( 'should run tool with optional id as null' , async ( ) => {
@@ -408,7 +408,7 @@ describe('ToolboxClient E2E Tests', () => {
408
408
id : null ,
409
409
} ) ;
410
410
expect ( typeof response ) . toBe ( 'string' ) ;
411
- expect ( response ) . toContain ( '\\ "email\\":\\ "[email protected] \\ "' ) ;
411
+ expect ( response ) . toContain ( '"email": "[email protected] "' ) ;
412
412
expect ( response ) . not . toContain ( 'row1' ) ;
413
413
expect ( response ) . toContain ( 'row2' ) ;
414
414
expect ( response ) . not . toContain ( 'row3' ) ;
@@ -438,7 +438,7 @@ describe('ToolboxClient E2E Tests', () => {
438
438
data : 'row2' ,
439
439
} ) ;
440
440
expect ( typeof response ) . toBe ( 'string' ) ;
441
- expect ( response ) . toContain ( '\\ "email\\":\\ "[email protected] \\ "' ) ;
441
+ expect ( response ) . toContain ( '"email": "[email protected] "' ) ;
442
442
expect ( response ) . not . toContain ( 'row1' ) ;
443
443
expect ( response ) . toContain ( 'row2' ) ;
444
444
expect ( response ) . not . toContain ( 'row3' ) ;
@@ -454,7 +454,7 @@ describe('ToolboxClient E2E Tests', () => {
454
454
data : 'row3' ,
455
455
} ) ;
456
456
expect ( typeof response ) . toBe ( 'string' ) ;
457
- expect ( response ) . toContain ( '\\ "email\\":\\ "[email protected] \\ "' ) ;
457
+ expect ( response ) . toContain ( '"email": "[email protected] "' ) ;
458
458
expect ( response ) . not . toContain ( 'row1' ) ;
459
459
expect ( response ) . not . toContain ( 'row2' ) ;
460
460
expect ( response ) . toContain ( 'row3' ) ;
@@ -470,7 +470,7 @@ describe('ToolboxClient E2E Tests', () => {
470
470
data : 'row3' ,
471
471
} ) ;
472
472
expect ( typeof response ) . toBe ( 'string' ) ;
473
- expect ( response ) . toBe ( '{"result":" null"} ' ) ;
473
+ expect ( response ) . toBe ( 'null' ) ;
474
474
} ) ;
475
475
476
476
it ( 'should return null when called with different data' , async ( ) => {
@@ -480,7 +480,7 @@ describe('ToolboxClient E2E Tests', () => {
480
480
data : 'row4' ,
481
481
} ) ;
482
482
expect ( typeof response ) . toBe ( 'string' ) ;
483
- expect ( response ) . toBe ( '{"result":" null"} ' ) ;
483
+ expect ( response ) . toBe ( 'null' ) ;
484
484
} ) ;
485
485
486
486
it ( 'should return null when called with a different id' , async ( ) => {
@@ -490,7 +490,7 @@ describe('ToolboxClient E2E Tests', () => {
490
490
data : 'row3' ,
491
491
} ) ;
492
492
expect ( typeof response ) . toBe ( 'string' ) ;
493
- expect ( response ) . toBe ( '{"result":" null"} ' ) ;
493
+ expect ( response ) . toBe ( 'null' ) ;
494
494
} ) ;
495
495
} ) ;
496
496
} ) ;
0 commit comments