diff --git a/lib/workers/repository/__fixtures__/master-issue_with_2_PR_closed_ignored.txt b/lib/workers/repository/__fixtures__/dependency-dashboard-with-2-PR-closed-ignored.txt similarity index 100% rename from lib/workers/repository/__fixtures__/master-issue_with_2_PR_closed_ignored.txt rename to lib/workers/repository/__fixtures__/dependency-dashboard-with-2-PR-closed-ignored.txt diff --git a/lib/workers/repository/__fixtures__/master-issue_with_2_PR_edited.txt b/lib/workers/repository/__fixtures__/dependency-dashboard-with-2-PR-edited.txt similarity index 100% rename from lib/workers/repository/__fixtures__/master-issue_with_2_PR_edited.txt rename to lib/workers/repository/__fixtures__/dependency-dashboard-with-2-PR-edited.txt diff --git a/lib/workers/repository/__fixtures__/master-issue_with_3_PR_in_approval.txt b/lib/workers/repository/__fixtures__/dependency-dashboard-with-3-PR-in-approval.txt similarity index 100% rename from lib/workers/repository/__fixtures__/master-issue_with_3_PR_in_approval.txt rename to lib/workers/repository/__fixtures__/dependency-dashboard-with-3-PR-in-approval.txt diff --git a/lib/workers/repository/__fixtures__/master-issue_with_3_PR_in_progress.txt b/lib/workers/repository/__fixtures__/dependency-dashboard-with-3-PR-in-progress.txt similarity index 100% rename from lib/workers/repository/__fixtures__/master-issue_with_3_PR_in_progress.txt rename to lib/workers/repository/__fixtures__/dependency-dashboard-with-3-PR-in-progress.txt diff --git a/lib/workers/repository/__fixtures__/master-issue_with_8_PR.txt b/lib/workers/repository/__fixtures__/dependency-dashboard-with-8-PR.txt similarity index 100% rename from lib/workers/repository/__fixtures__/master-issue_with_8_PR.txt rename to lib/workers/repository/__fixtures__/dependency-dashboard-with-8-PR.txt diff --git a/lib/workers/repository/dependency-dashboard.spec.ts b/lib/workers/repository/dependency-dashboard.spec.ts index 30acc6197524c59006a6065f1d19bd01fbb398b8..3aa39218017eb1bb3e1fc3ca7896bd532e96e80b 100644 --- a/lib/workers/repository/dependency-dashboard.spec.ts +++ b/lib/workers/repository/dependency-dashboard.spec.ts @@ -85,8 +85,10 @@ describe('workers/repository/dependency-dashboard', () => { title: '', number: 1, body: - Fixtures.get('master-issue_with_8_PR.txt').replace('- [ ]', '- [x]') + - '\n\n - [x] <!-- rebase-all-open-prs -->', + Fixtures.get('dependency-dashboard-with-8-PR.txt').replace( + '- [ ]', + '- [x]' + ) + '\n\n - [x] <!-- rebase-all-open-prs -->', }); await dependencyDashboard.readDashboardBody(conf); expect(conf).toEqual({ @@ -302,7 +304,7 @@ describe('workers/repository/dependency-dashboard', () => { config.dependencyDashboardTitle ); expect(platform.ensureIssue.mock.calls[0][0].body).toBe( - Fixtures.get('master-issue_with_8_PR.txt') + Fixtures.get('dependency-dashboard-with-8-PR.txt') ); // same with dry run @@ -339,7 +341,7 @@ describe('workers/repository/dependency-dashboard', () => { config.dependencyDashboardTitle ); expect(platform.ensureIssue.mock.calls[0][0].body).toBe( - Fixtures.get('master-issue_with_2_PR_edited.txt') + Fixtures.get('dependency-dashboard-with-2-PR-edited.txt') ); // same with dry run @@ -384,7 +386,7 @@ describe('workers/repository/dependency-dashboard', () => { config.dependencyDashboardTitle ); expect(platform.ensureIssue.mock.calls[0][0].body).toBe( - Fixtures.get('master-issue_with_3_PR_in_progress.txt') + Fixtures.get('dependency-dashboard-with-3-PR-in-progress.txt') ); // same with dry run @@ -419,7 +421,7 @@ describe('workers/repository/dependency-dashboard', () => { config.dependencyDashboardTitle ); expect(platform.ensureIssue.mock.calls[0][0].body).toBe( - Fixtures.get('master-issue_with_2_PR_closed_ignored.txt') + Fixtures.get('dependency-dashboard-with-2-PR-closed-ignored.txt') ); // same with dry run @@ -469,7 +471,7 @@ describe('workers/repository/dependency-dashboard', () => { config.dependencyDashboardTitle ); expect(platform.ensureIssue.mock.calls[0][0].body).toBe( - Fixtures.get('master-issue_with_3_PR_in_approval.txt') + Fixtures.get('dependency-dashboard-with-3-PR-in-approval.txt') ); // same with dry run