@@ -271,6 +271,42 @@ test(
271271 } ,
272272) ;
273273
274+ test (
275+ calculateAugmentationMacro ,
276+ "With repo property queries" ,
277+ undefined ,
278+ undefined ,
279+ [ KnownLanguage . javascript ] ,
280+ {
281+ "github-codeql-extra-queries" : "a, b, c, d" ,
282+ } ,
283+ {
284+ ...dbConfig . defaultAugmentationProperties ,
285+ repoPropertyQueries : {
286+ combines : false ,
287+ input : [ { uses : "a" } , { uses : "b" } , { uses : "c" } , { uses : "d" } ] ,
288+ } ,
289+ } ,
290+ ) ;
291+
292+ test (
293+ calculateAugmentationMacro ,
294+ "With repo property queries combining" ,
295+ undefined ,
296+ undefined ,
297+ [ KnownLanguage . javascript ] ,
298+ {
299+ "github-codeql-extra-queries" : "+ a, b, c, d" ,
300+ } ,
301+ {
302+ ...dbConfig . defaultAugmentationProperties ,
303+ repoPropertyQueries : {
304+ combines : true ,
305+ input : [ { uses : "a" } , { uses : "b" } , { uses : "c" } , { uses : "d" } ] ,
306+ } ,
307+ } ,
308+ ) ;
309+
274310const calculateAugmentationErrorMacro = test . macro ( {
275311 exec : async (
276312 t : ExecutionContext ,
@@ -315,6 +351,18 @@ test(
315351 / T h e w o r k f l o w p r o p e r t y " p a c k s " i s i n v a l i d / ,
316352) ;
317353
354+ test (
355+ calculateAugmentationErrorMacro ,
356+ "Plus (+) with nothing else (repo property queries)" ,
357+ undefined ,
358+ undefined ,
359+ [ KnownLanguage . javascript ] ,
360+ {
361+ "github-codeql-extra-queries" : " + " ,
362+ } ,
363+ / T h e r e p o s i t o r y p r o p e r t y " g i t h u b - c o d e q l - e x t r a - q u e r i e s " i s i n v a l i d / ,
364+ ) ;
365+
318366test (
319367 calculateAugmentationErrorMacro ,
320368 "Packs input with multiple languages" ,
0 commit comments