@@ -288,20 +288,21 @@ describe('Remote queries', function() {
288288 liveResultsStub . returns ( true ) ;
289289 } ) ;
290290
291+ const dummyVariantAnalysis : VariantAnalysis = {
292+ id : 123 ,
293+ controller_repo : {
294+ id : 64 ,
295+ name : 'pickles' ,
296+ full_name : 'github/pickles' ,
297+ private : false ,
298+ } ,
299+ actor_id : 27 ,
300+ query_language : 'javascript' ,
301+ query_pack_url : 'https://example.com/foo' ,
302+ status : 'in_progress' ,
303+ } ;
304+
291305 it ( 'should run a variant analysis that is part of a qlpack' , async ( ) => {
292- const dummyVariantAnalysis : VariantAnalysis = {
293- id : 123 ,
294- controller_repo : {
295- id : 64 ,
296- name : 'pickles' ,
297- full_name : 'github/pickles' ,
298- private : false ,
299- } ,
300- actor_id : 27 ,
301- query_language : 'javascript' ,
302- query_pack_url : 'https://example.com/foo' ,
303- status : 'in_progress' ,
304- } ;
305306 const submitVariantAnalysisStub = sandbox . stub ( ghApiClient , 'submitVariantAnalysis' ) . resolves ( dummyVariantAnalysis ) ;
306307
307308 const fileUri = getFile ( 'data-remote-qlpack/in-pack.ql' ) ;
@@ -315,19 +316,6 @@ describe('Remote queries', function() {
315316 } ) ;
316317
317318 it ( 'should run a remote query that is not part of a qlpack' , async ( ) => {
318- const dummyVariantAnalysis : VariantAnalysis = {
319- id : 123 ,
320- controller_repo : {
321- id : 64 ,
322- name : 'pickles' ,
323- full_name : 'github/pickles' ,
324- private : false ,
325- } ,
326- actor_id : 27 ,
327- query_language : 'javascript' ,
328- query_pack_url : 'https://example.com/foo' ,
329- status : 'in_progress' ,
330- } ;
331319 const submitVariantAnalysisStub = sandbox . stub ( ghApiClient , 'submitVariantAnalysis' ) . resolves ( dummyVariantAnalysis ) ;
332320
333321 const fileUri = getFile ( 'data-remote-no-qlpack/in-pack.ql' ) ;
@@ -341,19 +329,6 @@ describe('Remote queries', function() {
341329 } ) ;
342330
343331 it ( 'should run a remote query that is nested inside a qlpack' , async ( ) => {
344- const dummyVariantAnalysis : VariantAnalysis = {
345- id : 123 ,
346- controller_repo : {
347- id : 64 ,
348- name : 'pickles' ,
349- full_name : 'github/pickles' ,
350- private : false ,
351- } ,
352- actor_id : 27 ,
353- query_language : 'javascript' ,
354- query_pack_url : 'https://example.com/foo' ,
355- status : 'in_progress' ,
356- } ;
357332 const submitVariantAnalysisStub = sandbox . stub ( ghApiClient , 'submitVariantAnalysis' ) . resolves ( dummyVariantAnalysis ) ;
358333
359334 const fileUri = getFile ( 'data-remote-qlpack-nested/subfolder/in-pack.ql' ) ;
0 commit comments