From 69bb8f0398a14c0b3feca0125361c0c80c5bb731 Mon Sep 17 00:00:00 2001 From: Andrew Lisowski Date: Tue, 26 May 2020 10:56:49 -0700 Subject: [PATCH] fix tests --- plugins/slack/__tests__/slack.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/slack/__tests__/slack.test.ts b/plugins/slack/__tests__/slack.test.ts index c0cf088681..1b329889bb 100644 --- a/plugins/slack/__tests__/slack.test.ts +++ b/plugins/slack/__tests__/slack.test.ts @@ -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 () => { @@ -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",