Avoid default arguments with historical values
This commit is contained in:
parent
9ec0bb9605
commit
ad6046ff97
15 changed files with 24 additions and 18 deletions
2
lib/upload-lib.test.js
generated
2
lib/upload-lib.test.js
generated
|
|
@ -94,7 +94,7 @@ ava_1.default.beforeEach(() => {
|
|||
// add some `.quality.sarif` files that should be ignored, unless we look for them specifically
|
||||
fs.writeFileSync(path.join(tmpDir, "a.quality.sarif"), "");
|
||||
fs.writeFileSync(path.join(tmpDir, "dir1", "b.quality.sarif"), "");
|
||||
const sarifFiles = uploadLib.findSarifFilesInDir(tmpDir);
|
||||
const sarifFiles = uploadLib.findSarifFilesInDir(tmpDir, uploadLib.CodeScanningTarget.sarifPredicate);
|
||||
t.deepEqual(sarifFiles, [
|
||||
path.join(tmpDir, "a.sarif"),
|
||||
path.join(tmpDir, "b.sarif"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue