Skip to content

Commit

Permalink
test: move specific form factor tests into one suite
Browse files Browse the repository at this point in the history
  • Loading branch information
TGiles committed Dec 23, 2020
1 parent 7d008d5 commit 5fc4cc9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions spec/main/lighthouse_runner.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const removeAggregateFile = (aggregatePath, formFactor) => {
};


describe('aggregateCSVReportsZero', () => {
describe('aggregateCSVReports', () => {
it('should only create the mobile report', async () => {
let testPath = path.join(__dirname, '../', 'helpers', 'lighthouse', '7_15_2020___6_15_05__PM');
let testDesktopAggregatePath = path.join(__dirname, '../', 'helpers', 'lighthouse', '7_15_2020___6_15_05__PM', '7_15_2020___6_15_05__PM_desktop_aggregateReport.csv');
Expand All @@ -32,12 +32,9 @@ describe('aggregateCSVReportsZero', () => {
expect(mobileReportExists).toBeTrue();
let desktopReportExists = fs.existsSync(testDesktopAggregatePath);
expect(desktopReportExists).toBeFalse();

removeAggregateFile(testMobileAggregatePath, mobileFormFactor);
});

});

describe("aggregateCSVReportsOne", () => {
it('should only create the desktop report', async () => {
let testPath = path.join(__dirname, '../', 'helpers', 'lighthouse', '7_17_2020___7_17_07__PM');
let testDesktopAggregatePath = path.join(__dirname, '../', 'helpers', 'lighthouse', '7_17_2020___7_17_07__PM', '7_17_2020___7_17_07__PM_desktop_aggregateReport.csv');
Expand All @@ -51,6 +48,7 @@ describe("aggregateCSVReportsOne", () => {
expect(desktopReportExists).toBeTrue();
let mobileReportExists = fs.existsSync(testMobileAggregatePath);
expect(mobileReportExists).toBeFalse();
removeAggregateFile(testDesktopAggregatePath, desktopFormFactor);
});
});

Expand Down

0 comments on commit 5fc4cc9

Please sign in to comment.