Skip to content

Commit

Permalink
Tweak the assertion code in the added test
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Aug 4, 2022
1 parent e5604ad commit 747e2cb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/apply-release-plan/src/index.test.ts
Expand Up @@ -1465,11 +1465,9 @@ describe("apply release plan", () => {
}
);

let readmePath = changedFiles.find(a =>
a.endsWith(`pkg-a${path.sep}CHANGELOG.md`)
);

if (readmePath) throw new Error(`should not have found a changelog`);
expect(
changedFiles.find(a => a.endsWith(`pkg-a${path.sep}CHANGELOG.md`))
).toBeUndefined();
});
it("should update a changelog for one package", async () => {
const releasePlan = new FakeReleasePlan();
Expand Down

0 comments on commit 747e2cb

Please sign in to comment.