From 84362bc6aff152e022a2b9650cb3949754dc0ac6 Mon Sep 17 00:00:00 2001 From: Leo Horwitz Date: Tue, 5 Sep 2023 12:31:54 -0400 Subject: [PATCH] @W-14009441@: fix test typo --- test/commands/scanner/run.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/commands/scanner/run.test.ts b/test/commands/scanner/run.test.ts index 7e1813cd9..c8f8a5d5f 100644 --- a/test/commands/scanner/run.test.ts +++ b/test/commands/scanner/run.test.ts @@ -402,7 +402,7 @@ describe('scanner:run', function () { .it('When --outfile is provided and no violations are detected, HTML file with no violations should be created', ctx => { expect(ctx.stdout).to.contain(processorMessages.getMessage('output.writtenToOutFile', [outputFile])); expect(fs.existsSync(outputFile)).to.be.true; - const fileContents = fs.readFileSync('testout.html').toString(); + const fileContents = fs.readFileSync(outputFile).toString(); validateNoViolationsHtmlOutput(fileContents); }); });