Skip to content

Commit

Permalink
refactor: Rename fixtures to align with variable name
Browse files Browse the repository at this point in the history
Rename test fixtures used in format-test-results to align
with the variable name change.
This is done in a separate commit so it's clearer in git
history that the files were changed and then renamed rather
than deleted and created new files.
  • Loading branch information
snaftaly committed Jan 5, 2022
1 parent 5805f4f commit 1949818
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions test/jest/unit/lib/formatters/test/format-test-results.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('extractDataToSendFromResults', () => {
);

const mappedResultsFixture = JSON.parse(
fs.readFileSync('test/fixtures/basic-npm/jsonData.json', 'utf-8'),
fs.readFileSync('test/fixtures/basic-npm/mappedResults.json', 'utf-8'),
);

it('should not create any JSON unless it is needed per options', () => {
Expand Down Expand Up @@ -138,7 +138,7 @@ describe('extractDataToSendFromResults', () => {

const mappedResultsFixture = JSON.parse(
fs.readFileSync(
'test/fixtures/npm/issue-grouping/singleProjectJsonData.json',
'test/fixtures/npm/issue-grouping/singleProjectMappedResults.json',
'utf-8',
),
);
Expand Down Expand Up @@ -213,7 +213,7 @@ describe('extractDataToSendFromResults', () => {

const mappedResultsFixture = JSON.parse(
fs.readFileSync(
'test/fixtures/npm/issue-grouping/multiProjectJsonData.json',
'test/fixtures/npm/issue-grouping/multiProjectMappedResults.json',
'utf-8',
),
);
Expand Down Expand Up @@ -291,7 +291,7 @@ describe('extractDataToSendFromResults', () => {
);

const mappedResultsContainerFixture = JSON.parse(
fs.readFileSync('test/fixtures/basic-apk/jsonData.json', 'utf-8'),
fs.readFileSync('test/fixtures/basic-apk/mappedResults.json', 'utf-8'),
);
const resultJsonDataGroupedContainerFixture = JSON.parse(
fs.readFileSync(
Expand Down Expand Up @@ -330,7 +330,7 @@ describe('extractDataToSendFromResults', () => {
);
const mappedResultsAppVulnsFixture = JSON.parse(
fs.readFileSync(
'test/fixtures/container-app-vulns/jsonData.json',
'test/fixtures/container-app-vulns/mappedResults.json',
'utf-8',
),
);
Expand Down

0 comments on commit 1949818

Please sign in to comment.