Skip to content

Commit

Permalink
chore: fix force publish released head test
Browse files Browse the repository at this point in the history
  • Loading branch information
erquhart committed Apr 2, 2019
1 parent 86a88aa commit a9ba5df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions commands/version/__tests__/version-command.test.js
Expand Up @@ -148,11 +148,12 @@ describe("VersionCommand", () => {
expect.assertions(1);
});

it("does not throw if current ref is already tagged when using --force-publish", async () => {
it("calls `checkWorkingTree.throwIfUncommitted` when using --force-publish", async () => {
const testDir = await initFixture("normal");

await lernaVersion(testDir)("--force-publish");

expect.assertions(0);
expect(checkWorkingTree.throwIfUncommitted).toHaveBeenCalled();
});

it("only bumps changed packages when non-major version selected", async () => {
Expand Down

0 comments on commit a9ba5df

Please sign in to comment.