Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed May 26, 2020
1 parent 0e782ba commit 69bb8f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/slack/__tests__/slack.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ const nextBranch = execSync("git rev-parse --abbrev-ref HEAD", {
encoding: "utf8",
}).trim();

const mockAuto = ({
const mockAuto = {
git: {},
logger: dummyLog(),
} as unknown) as Auto;
} as any;

describe("postToSlack", () => {
test("doesn't post with no new version", async () => {
Expand Down Expand Up @@ -296,7 +296,7 @@ describe("postToSlack", () => {
const plugin = new SlackPlugin({ url: "https://custom-slack-url" });
const hooks = makeHooks();
process.env.SLACK_TOKEN = "MY_TOKEN";
plugin.apply({ hooks, options: {}, ...mockAuto } as Auto);
plugin.apply({ options: {}, ...mockAuto, hooks } as Auto);

await hooks.afterRelease.promise({
newVersion: "1.0.0",
Expand Down

0 comments on commit 69bb8f0

Please sign in to comment.