@@ -157,39 +157,39 @@ describe('Jobs SDK Class', () => {
157
157
const Jobs = require ( '../../classes/Jobs.js' )
158
158
const jobs = new Jobs ( constructorOptions )
159
159
test ( 'should reject form id' , ( ) => {
160
- return expect ( jobs . search ( { formId : 'ten' } ) ) . rejects . toThrow (
160
+ return expect ( jobs . searchJobs ( { formId : 'ten' } ) ) . rejects . toThrow (
161
161
'formId must be provided as a number or not at all'
162
162
)
163
163
} )
164
164
165
165
test ( 'should reject externalId' , ( ) => {
166
- return expect ( jobs . search ( { externalId : 12345 } ) ) . rejects . toThrow (
166
+ return expect ( jobs . searchJobs ( { externalId : 12345 } ) ) . rejects . toThrow (
167
167
'externalId must be provided as a string or not at all'
168
168
)
169
169
} )
170
170
171
171
test ( 'should reject username' , ( ) => {
172
- return expect ( jobs . search ( { username : 12345 } ) ) . rejects . toThrow (
172
+ return expect ( jobs . searchJobs ( { username : 12345 } ) ) . rejects . toThrow (
173
173
'username must be provided as a string or not at all'
174
174
)
175
175
} )
176
176
177
177
test ( 'should reject isSubmitted' , ( ) => {
178
- return expect ( jobs . search ( { isSubmitted : 'maybe?' } ) ) . rejects . toThrow (
178
+ return expect ( jobs . searchJobs ( { isSubmitted : 'maybe?' } ) ) . rejects . toThrow (
179
179
'isSubmitted must be provided as a boolean or not at all'
180
180
)
181
181
} )
182
182
183
183
test ( 'should reject limit' , ( ) => {
184
- return expect ( jobs . search ( { limit : 'infinite' } ) ) . rejects . toThrow (
184
+ return expect ( jobs . searchJobs ( { limit : 'infinite' } ) ) . rejects . toThrow (
185
185
'limit must be provided as a number or not at all'
186
186
)
187
187
} )
188
188
189
189
test ( 'should reject offset' , ( ) => {
190
- return expect ( jobs . search ( { offset : 'a little bit' } ) ) . rejects . toThrow (
191
- ' offset must be provided as a number or not at all'
192
- )
190
+ return expect (
191
+ jobs . searchJobs ( { offset : 'a little bit' } )
192
+ ) . rejects . toThrow ( 'offset must be provided as a number or not at all' )
193
193
} )
194
194
195
195
test ( 'should make search call successfully' , async ( ) => {
@@ -209,7 +209,7 @@ describe('Jobs SDK Class', () => {
209
209
const Jobs = require ( '../../classes/Jobs.js' )
210
210
const jobs = new Jobs ( constructorOptions )
211
211
212
- await jobs . search ( {
212
+ await jobs . searchJobs ( {
213
213
externalId : 'abc' ,
214
214
formId : 1 ,
215
215
0 commit comments