Add new lint fix
This commit is contained in:
@@ -745,7 +745,7 @@ describe("Variant Analysis Manager", () => {
|
||||
dummyVariantAnalysis,
|
||||
);
|
||||
expect(pathExistsStub).toBeCalledWith(
|
||||
path.join(storagePath, dummyVariantAnalysis.id.toString()),
|
||||
join(storagePath, dummyVariantAnalysis.id.toString()),
|
||||
);
|
||||
expect(variantAnalysisManager.variantAnalysesSize).toBe(1);
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import { CodeQLExtensionInterface } from "../../../extension";
|
||||
import { extLogger } from "../../../common";
|
||||
import { Credentials } from "../../../authentication";
|
||||
import * as fs from "fs-extra";
|
||||
import { join } from "path";
|
||||
import { join, resolve } from "path";
|
||||
|
||||
import { VariantAnalysisResultsManager } from "../../../remote-queries/variant-analysis-results-manager";
|
||||
import { CodeQLCliServer } from "../../../cli";
|
||||
@@ -204,7 +204,7 @@ describe(VariantAnalysisResultsManager.name, () => {
|
||||
|
||||
dummyRepoTask = createMockVariantAnalysisRepositoryTask();
|
||||
|
||||
variantAnalysisStoragePath = path.join(
|
||||
variantAnalysisStoragePath = join(
|
||||
storagePath,
|
||||
variantAnalysisId.toString(),
|
||||
);
|
||||
@@ -236,7 +236,7 @@ describe(VariantAnalysisResultsManager.name, () => {
|
||||
describe("when the repo task has been written to disk", () => {
|
||||
beforeEach(async () => {
|
||||
await fs.outputJson(
|
||||
path.join(repoTaskStorageDirectory, "repo_task.json"),
|
||||
join(repoTaskStorageDirectory, "repo_task.json"),
|
||||
dummyRepoTask,
|
||||
);
|
||||
});
|
||||
@@ -256,9 +256,9 @@ describe(VariantAnalysisResultsManager.name, () => {
|
||||
describe("when the SARIF results are downloaded", () => {
|
||||
beforeEach(async () => {
|
||||
await fs.outputJson(
|
||||
path.join(repoTaskStorageDirectory, "results/results.sarif"),
|
||||
join(repoTaskStorageDirectory, "results/results.sarif"),
|
||||
await fs.readJson(
|
||||
path.resolve(
|
||||
resolve(
|
||||
__dirname,
|
||||
"../../no-workspace/data/sarif/validSarif.sarif",
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user