Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed May 29, 2020
1 parent daf7e84 commit e3988d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions plugins/git-tag/__tests__/git-tag.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe("Git Tag Plugin", () => {
describe("next", () => {
test("should do nothing without git", async () => {
const hooks = setup();
await hooks.next.promise([], Auto.SEMVER.patch);
await hooks.next.promise([], Auto.SEMVER.patch, {} as any);
expect(exec).not.toHaveBeenCalled();
});

Expand All @@ -95,7 +95,7 @@ describe("Git Tag Plugin", () => {
getLastTagNotInBaseBranch: () => "v1.0.0",
});

await hooks.next.promise([], Auto.SEMVER.patch);
await hooks.next.promise([], Auto.SEMVER.patch, {} as any);

expect(exec).toHaveBeenCalledWith("git", [
"tag",
Expand Down
19 changes: 9 additions & 10 deletions plugins/npm/__tests__/npm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1075,9 +1075,9 @@ describe("next", () => {
}
`;

expect(await hooks.next.promise([], Auto.SEMVER.patch)).toStrictEqual([
"1.2.4-next.0",
]);
expect(
await hooks.next.promise([], Auto.SEMVER.patch, {} as any)
).toStrictEqual(["1.2.4-next.0"]);

expect(execPromise).toHaveBeenCalledWith("npm", [
"version",
Expand Down Expand Up @@ -1126,9 +1126,9 @@ describe("next", () => {
},
} as unknown) as Auto.Auto);

expect(await hooks.next.promise([], Auto.SEMVER.patch)).toStrictEqual([
"1.2.4-next.0",
]);
expect(
await hooks.next.promise([], Auto.SEMVER.patch, {} as any)
).toStrictEqual(["1.2.4-next.0"]);

expect(execPromise).toHaveBeenCalledWith(
"npx",
Expand Down Expand Up @@ -1164,10 +1164,9 @@ describe("next", () => {
},
} as unknown) as Auto.Auto);

expect(await hooks.next.promise([], Auto.SEMVER.patch)).toStrictEqual([
"@foo/[email protected]",
"@foo/[email protected]",
]);
expect(
await hooks.next.promise([], Auto.SEMVER.patch, {} as any)
).toStrictEqual(["@foo/[email protected]", "@foo/[email protected]"]);

expect(execPromise).toHaveBeenCalledWith(
"npx",
Expand Down

0 comments on commit e3988d3

Please sign in to comment.