mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-21 07:46:06 +08:00
test fixes
This commit is contained in:
parent
b3271432ef
commit
4635bf7d14
|
@ -228,10 +228,11 @@ describe "MessageList", ->
|
|||
MessageParticipants)
|
||||
expect(items.length).toBe 5
|
||||
|
||||
it "displays the thread participants on the page", ->
|
||||
items = TestUtils.scryRenderedComponentsWithType(@message_list,
|
||||
ParticipantsItem)
|
||||
expect(items.length).toBe 1
|
||||
# We no longer do this (for now)
|
||||
# it "displays the thread participants on the page", ->
|
||||
# items = TestUtils.scryRenderedComponentsWithType(@message_list,
|
||||
# ParticipantsItem)
|
||||
# expect(items.length).toBe 1
|
||||
|
||||
it "focuses new composers when a draft is added", ->
|
||||
spyOn(@message_list, "_focusRef")
|
||||
|
|
|
@ -259,10 +259,11 @@ describe "ThreadListTabular", ->
|
|||
ThreadListTabularItem)
|
||||
expect(items.length).toBe 3
|
||||
|
||||
it "Expects there to be headers", ->
|
||||
heads = ReactTestUtils.scryRenderedDOMComponentsWithClass(@thread_list, "thread-list-header")
|
||||
expect(heads.length).toBe(3)
|
||||
|
||||
# We no longer put headers in the thread list (for now)
|
||||
# it "Expects there to be headers", ->
|
||||
# heads = ReactTestUtils.scryRenderedDOMComponentsWithClass(@thread_list, "thread-list-header")
|
||||
# expect(heads.length).toBe(3)
|
||||
#
|
||||
|
||||
describe "ThreadListTabularItem", ->
|
||||
beforeEach ->
|
||||
|
|
|
@ -76,8 +76,8 @@ describe "Contact", ->
|
|||
expect(c3.displayFirstName()).toBe ""
|
||||
expect(c3.displayLastName()).toBe ""
|
||||
|
||||
it "should properly return `Me` as the display name for the current user", ->
|
||||
it "should properly return `You` as the display name for the current user", ->
|
||||
c1 = new Contact {name: " Test Monkey", email: NamespaceStore.current().emailAddress}
|
||||
expect(c1.displayName()).toBe "Me"
|
||||
expect(c1.displayFirstName()).toBe "Me"
|
||||
expect(c1.displayName()).toBe "You"
|
||||
expect(c1.displayFirstName()).toBe "You"
|
||||
expect(c1.displayLastName()).toBe ""
|
||||
|
|
Loading…
Reference in a new issue