@@ -41,7 +41,7 @@ describe('Tickets', () => {
41
41
} )
42
42
43
43
it ( 'should list tickets by name and with pagination options' , async ( ) => {
44
- nock ( 'https://carchost.fieldcontrol.com.br' ) . get ( '/employees ?limit=10&offset=0&q=name:"Luiz"' ) . reply ( 200 , { } )
44
+ nock ( 'https://carchost.fieldcontrol.com.br' ) . get ( '/tickets ?limit=10&offset=0&q=name:"Luiz"' ) . reply ( 200 , { } )
45
45
const response = await client . tickets . list ( {
46
46
filter : {
47
47
name : 'Luiz'
@@ -55,7 +55,10 @@ describe('Tickets', () => {
55
55
} )
56
56
57
57
it ( 'should list tickets by identifier and with pagination options' , async ( ) => {
58
- nock ( 'https://carchost.fieldcontrol.com.br' ) . get ( '/employees?limit=10&offset=0&q=identifier:"1234567"' ) . reply ( 200 , { } )
58
+ nock ( 'https://carchost.fieldcontrol.com.br' )
59
+ . get ( '/tickets?limit=10&offset=0&q=identifier:"1234567"' )
60
+ . reply ( 200 , { } )
61
+
59
62
const response = await client . tickets . list ( {
60
63
filter : {
61
64
identifier : '1234567'
@@ -69,7 +72,10 @@ describe('Tickets', () => {
69
72
} )
70
73
71
74
it ( 'should list tickets by identifier, name, archived and with pagination options' , async ( ) => {
72
- nock ( 'https://carchost.fieldcontrol.com.br' ) . get ( '/employees?limit=10&offset=1&q=identifier:"1234567" name:"Freneda" archived:"true"' ) . reply ( 200 , { } )
75
+ nock ( 'https://carchost.fieldcontrol.com.br' )
76
+ . get ( '/tickets?limit=10&offset=1&q=identifier:"1234567" name:"Freneda" archived:"true"' )
77
+ . reply ( 200 , { } )
78
+
73
79
const response = await client . tickets . list ( {
74
80
filter : {
75
81
identifier : '1234567' ,
0 commit comments