Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonam Serchan authored and sonam-serchan committed Aug 1, 2023
1 parent 4788b13 commit 1243d06
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/slack/slackEventStrategies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface SlackEventStrategy {
handle(slackWebClient: SlackWebClient, slackEvent: SlackEvent): void;
}

class ChannelJoinStrategy implements SlackEventStrategy {
export class ChannelJoinStrategy implements SlackEventStrategy {
async handle(
slackWebClient: SlackWebClient,
slackEvent: SlackChannelJoinEvent
Expand All @@ -22,7 +22,7 @@ class ChannelJoinStrategy implements SlackEventStrategy {
}
}

class MessageStrategy implements SlackEventStrategy {
export class MessageStrategy implements SlackEventStrategy {
async handle(
slackWebClient: SlackWebClient,
slackEvent: SlackMessageEvent
Expand Down
12 changes: 6 additions & 6 deletions tests/helpers/slack.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { handleSlackMessageEvent } from "../../src/helpers/slack";
import { describe, test, expect, jest, it } from "@jest/globals";
import { addReactionToSlackPost } from "../../src/slack/slackInteraction";
import { handleSlackMessageEvent } from "../../src/slack/slackEventHandler";
import { SlackWebClient } from "../../src/helpers/types";
import {
MessageChangedStrategy,
ChannelJoinStrategy,
MessageChangedStrategy,
MessageStrategy,
addReactionToSlackPost
} from "../../src/helpers/slack";
import { SlackWebClient } from "../../src/helpers/types";
import { describe, test, expect, jest, it } from "@jest/globals";
} from "../../src/slack/slackEventStrategies";

const slackMessageChangedEvent = {
channel_type: "channel",
Expand Down

0 comments on commit 1243d06

Please sign in to comment.