@@ -60,6 +60,7 @@ describe('runBrokenLinks', async () => {
60
60
screenshot_file : 'bucket/folder/file.png' ,
61
61
screenshot_error : { } as BaseError ,
62
62
} ;
63
+ const args = { checkId : 'test-check-id' , executionId : 'test-execution-id' } ;
63
64
64
65
const mockedstorageFunc = proxyquire ( '../../src/storage_func' , {
65
66
'@google-cloud/synthetics-sdk-api' : {
@@ -103,7 +104,7 @@ describe('runBrokenLinks', async () => {
103
104
origin_uri : 'uri-does-not-start-with-http' ,
104
105
} ;
105
106
106
- const result = await runBrokenLinks ( inputOptions ) ;
107
+ const result = await runBrokenLinks ( inputOptions , args ) ;
107
108
108
109
const genericResult = result . synthetic_generic_result_v1 ;
109
110
@@ -137,7 +138,7 @@ describe('runBrokenLinks', async () => {
137
138
screenshot_options : { capture_condition : CaptureCondition . NONE } ,
138
139
} ;
139
140
140
- const result = await mockedBlc . runBrokenLinks ( inputOptions ) ;
141
+ const result = await mockedBlc . runBrokenLinks ( inputOptions , args ) ;
141
142
142
143
const broken_links_result = result ?. synthetic_broken_links_result_v1 ;
143
144
const origin_link = broken_links_result ?. origin_link_result ;
@@ -174,7 +175,7 @@ describe('runBrokenLinks', async () => {
174
175
total_synthetic_timeout_millis : 31000 ,
175
176
screenshot_options : { capture_condition : CaptureCondition . NONE } ,
176
177
} ;
177
- const result = await mockedBlc . runBrokenLinks ( inputOptions ) ;
178
+ const result = await mockedBlc . runBrokenLinks ( inputOptions , args ) ;
178
179
const broken_links_result = result . synthetic_broken_links_result_v1 ;
179
180
180
181
const expectedOriginLinkResult : BrokenLinksResultV1_SyntheticLinkResult = {
@@ -210,7 +211,7 @@ describe('runBrokenLinks', async () => {
210
211
screenshot_options : { capture_condition : CaptureCondition . NONE } ,
211
212
} ;
212
213
213
- const result = await runBrokenLinks ( inputOptions ) ;
214
+ const result = await runBrokenLinks ( inputOptions , args ) ;
214
215
215
216
const broken_links_result = result ?. synthetic_broken_links_result_v1 ;
216
217
const origin_link = broken_links_result ?. origin_link_result ;
@@ -274,7 +275,7 @@ describe('runBrokenLinks', async () => {
274
275
} ,
275
276
} ;
276
277
277
- const result = await mockedBlc . runBrokenLinks ( inputOptions ) ;
278
+ const result = await mockedBlc . runBrokenLinks ( inputOptions , args ) ;
278
279
279
280
const broken_links_result = result ?. synthetic_broken_links_result_v1 ;
280
281
const options = broken_links_result ?. options ;
0 commit comments