mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-01 02:25:45 +08:00
fix(specs): Thread needs to be defined for MessageItem
This commit is contained in:
parent
682f7efcdc
commit
df2c64f4dd
1 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,7 @@ ReactTestUtils = React.addons.TestUtils
|
|||
{Contact,
|
||||
Message,
|
||||
File,
|
||||
Thread,
|
||||
ComponentRegistry,
|
||||
FileDownloadStore,
|
||||
InboxTestUtils} = require "inbox-exports"
|
||||
|
@ -99,6 +100,9 @@ describe "MessageItem", ->
|
|||
threadId: "thread_12345"
|
||||
namespaceId: "nsid"
|
||||
|
||||
@thread = new Thread
|
||||
id: 'thread-111'
|
||||
|
||||
@threadParticipants = [user_1, user_2, user_3, user_4]
|
||||
|
||||
# Generate the test component. Should be called after @message is configured
|
||||
|
@ -109,6 +113,7 @@ describe "MessageItem", ->
|
|||
@component = ReactTestUtils.renderIntoDocument(
|
||||
<MessageItem key={@message.id}
|
||||
message={@message}
|
||||
thread={@thread}
|
||||
collapsed={collapsed}
|
||||
thread_participants={@threadParticipants} />
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue