Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
unit(consultation): ensure placement is a separate element
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Sep 13, 2022
1 parent e067c62 commit 5e0d671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/consultation/chat_window/chat_message.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe("Component: consultation/chat_window/chat_message", () => {
const messageItemName = wrapper.find(".message-item-name")
const messageItemContent = wrapper.find(".message-item-content")

expect(messageItem.classes()).toContain("right")
expect(messageItem.find(".place-right").exists()).toBeTruthy()
expect(messageItemName.html()).toContain(user.data.name)
expect(messageItemContent.html()).toContain(textValue)
})
Expand Down Expand Up @@ -126,7 +126,7 @@ describe("Component: consultation/chat_window/chat_message", () => {
const messageItemName = wrapper.find(".message-item-name")
const messageItemContent = wrapper.find(".message-item-content")

expect(messageItem.classes()).toContain("left")
expect(messageItem.find(".place-left").exists()).toBeTruthy()
expect(messageItemName.html()).toContain(other.data.name)
expect(messageItemContent.html()).toContain(textValue)
})
Expand Down

0 comments on commit 5e0d671

Please sign in to comment.