Skip to content

Commit

Permalink
Fix Bad Restaurant name (#943)
Browse files Browse the repository at this point in the history
* Fix Bad Restaurant name

* Search should contain query and not equal
  • Loading branch information
GuyKh authored Sep 20, 2023
1 parent 10980ae commit 7950561
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/app.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe("App", () => {
expect(slackRes.response_type).to.equal("in_channel");
expect(slackRes.attachments).not.to.equal(null);
expect(slackRes.attachments.length).to.equal(1);
expect(slackRes.attachments[0].title).to.equal(validSlackMessage.text);
expect(slackRes.attachments[0].title).to.contain(validSlackMessage.text);
});
});
it('process() should return one restaurant if valid Slack message with quotes (") ', () => {
Expand Down Expand Up @@ -240,7 +240,7 @@ describe("App", () => {
HipChatMessageFormatter.COMMAND_OPERATOR.length + 1
);
}
expect(hipChatRes.card.title).to.equal(message);
expect(hipChatRes.card.title).to.contain(message);
});
});
it("process() should return default message if invalid Slack message", () => {
Expand Down
2 changes: 1 addition & 1 deletion test/testCommons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const restaurants: Commons.Restaurant[] = [
.build(),
new Commons.RestaurantBuilder()
.setRestaurantId(1238)
.setRestaurantName("אנסטסיה")
.setRestaurantName("אנסטסיה בית קפה טבעוני")
.setRestaurantAddress("תובל 19 רמת גן")
.setRestaurantCityName("רמת גן")
.setRestaurantLogoUrl(
Expand Down

0 comments on commit 7950561

Please sign in to comment.