@@ -3,9 +3,8 @@ import * as path from "path";
33
44import test from "ava" ;
55
6- import { Feature } from "./feature-flags" ;
76import { getRunnerLogger , Logger } from "./logging" ;
8- import { createFeatures , setupTests } from "./testing-utils" ;
7+ import { setupTests } from "./testing-utils" ;
98import * as uploadLib from "./upload-lib" ;
109import { GitHubVariant , initializeEnvironment , withTmpDir } from "./util" ;
1110
@@ -457,11 +456,10 @@ test("shouldShowCombineSarifFilesDeprecationWarning when environment variable is
457456 ) ;
458457} ) ;
459458
460- test ( "throwIfCombineSarifFilesDisabled when on dotcom with feature flag " , async ( t ) => {
459+ test ( "throwIfCombineSarifFilesDisabled when on dotcom" , async ( t ) => {
461460 await t . throwsAsync (
462461 uploadLib . throwIfCombineSarifFilesDisabled (
463462 [ createMockSarif ( "abc" , "def" ) , createMockSarif ( "abc" , "def" ) ] ,
464- createFeatures ( [ Feature . DisableCombineSarifFiles ] ) ,
465463 {
466464 type : GitHubVariant . DOTCOM ,
467465 } ,
@@ -473,23 +471,10 @@ test("throwIfCombineSarifFilesDisabled when on dotcom with feature flag", async
473471 ) ;
474472} ) ;
475473
476- test ( "throwIfCombineSarifFilesDisabled when on dotcom without feature flag" , async ( t ) => {
477- await t . notThrowsAsync (
478- uploadLib . throwIfCombineSarifFilesDisabled (
479- [ createMockSarif ( "abc" , "def" ) , createMockSarif ( "abc" , "def" ) ] ,
480- createFeatures ( [ ] ) ,
481- {
482- type : GitHubVariant . DOTCOM ,
483- } ,
484- ) ,
485- ) ;
486- } ) ;
487-
488474test ( "throwIfCombineSarifFilesDisabled when on GHES 3.13" , async ( t ) => {
489475 await t . notThrowsAsync (
490476 uploadLib . throwIfCombineSarifFilesDisabled (
491477 [ createMockSarif ( "abc" , "def" ) , createMockSarif ( "abc" , "def" ) ] ,
492- createFeatures ( [ ] ) ,
493478 {
494479 type : GitHubVariant . GHES ,
495480 version : "3.13.2" ,
@@ -502,7 +487,6 @@ test("throwIfCombineSarifFilesDisabled when on GHES 3.14", async (t) => {
502487 await t . notThrowsAsync (
503488 uploadLib . throwIfCombineSarifFilesDisabled (
504489 [ createMockSarif ( "abc" , "def" ) , createMockSarif ( "abc" , "def" ) ] ,
505- createFeatures ( [ ] ) ,
506490 {
507491 type : GitHubVariant . GHES ,
508492 version : "3.14.0" ,
@@ -515,7 +499,6 @@ test("throwIfCombineSarifFilesDisabled when on GHES 3.17", async (t) => {
515499 await t . notThrowsAsync (
516500 uploadLib . throwIfCombineSarifFilesDisabled (
517501 [ createMockSarif ( "abc" , "def" ) , createMockSarif ( "abc" , "def" ) ] ,
518- createFeatures ( [ ] ) ,
519502 {
520503 type : GitHubVariant . GHES ,
521504 version : "3.17.0" ,
@@ -528,7 +511,6 @@ test("throwIfCombineSarifFilesDisabled when on GHES 3.18 pre", async (t) => {
528511 await t . throwsAsync (
529512 uploadLib . throwIfCombineSarifFilesDisabled (
530513 [ createMockSarif ( "abc" , "def" ) , createMockSarif ( "abc" , "def" ) ] ,
531- createFeatures ( [ ] ) ,
532514 {
533515 type : GitHubVariant . GHES ,
534516 version : "3.18.0.pre1" ,
@@ -545,7 +527,6 @@ test("throwIfCombineSarifFilesDisabled when on GHES 3.18 alpha", async (t) => {
545527 await t . throwsAsync (
546528 uploadLib . throwIfCombineSarifFilesDisabled (
547529 [ createMockSarif ( "abc" , "def" ) , createMockSarif ( "abc" , "def" ) ] ,
548- createFeatures ( [ ] ) ,
549530 {
550531 type : GitHubVariant . GHES ,
551532 version : "3.18.0-alpha.1" ,
@@ -562,7 +543,6 @@ test("throwIfCombineSarifFilesDisabled when on GHES 3.18", async (t) => {
562543 await t . throwsAsync (
563544 uploadLib . throwIfCombineSarifFilesDisabled (
564545 [ createMockSarif ( "abc" , "def" ) , createMockSarif ( "abc" , "def" ) ] ,
565- createFeatures ( [ ] ) ,
566546 {
567547 type : GitHubVariant . GHES ,
568548 version : "3.18.0" ,
@@ -579,7 +559,6 @@ test("throwIfCombineSarifFilesDisabled with an invalid GHES version", async (t)
579559 await t . notThrowsAsync (
580560 uploadLib . throwIfCombineSarifFilesDisabled (
581561 [ createMockSarif ( "abc" , "def" ) , createMockSarif ( "abc" , "def" ) ] ,
582- createFeatures ( [ ] ) ,
583562 {
584563 type : GitHubVariant . GHES ,
585564 version : "foobar" ,
@@ -592,7 +571,6 @@ test("throwIfCombineSarifFilesDisabled with only 1 run", async (t) => {
592571 await t . notThrowsAsync (
593572 uploadLib . throwIfCombineSarifFilesDisabled (
594573 [ createMockSarif ( "abc" , "def" ) ] ,
595- createFeatures ( [ Feature . DisableCombineSarifFiles ] ) ,
596574 {
597575 type : GitHubVariant . DOTCOM ,
598576 } ,
@@ -604,7 +582,6 @@ test("throwIfCombineSarifFilesDisabled with distinct categories", async (t) => {
604582 await t . notThrowsAsync (
605583 uploadLib . throwIfCombineSarifFilesDisabled (
606584 [ createMockSarif ( "abc" , "def" ) , createMockSarif ( "def" , "def" ) ] ,
607- createFeatures ( [ Feature . DisableCombineSarifFiles ] ) ,
608585 {
609586 type : GitHubVariant . DOTCOM ,
610587 } ,
@@ -616,7 +593,6 @@ test("throwIfCombineSarifFilesDisabled with distinct tools", async (t) => {
616593 await t . notThrowsAsync (
617594 uploadLib . throwIfCombineSarifFilesDisabled (
618595 [ createMockSarif ( "abc" , "abc" ) , createMockSarif ( "abc" , "def" ) ] ,
619- createFeatures ( [ Feature . DisableCombineSarifFiles ] ) ,
620596 {
621597 type : GitHubVariant . DOTCOM ,
622598 } ,
0 commit comments