mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 21:57:55 +08:00
91edef9f7a
Conflicts: internal_packages/inbox-activity-bar/lib/activity-bar-long-poll-item.cjsx
24 lines
739 B
CoffeeScript
24 lines
739 B
CoffeeScript
proxyquire = require 'proxyquire'
|
|
Reflux = require 'reflux'
|
|
|
|
MessageStoreStub = Reflux.createStore
|
|
items: -> []
|
|
threadId: -> null
|
|
|
|
NamespaceStoreStub = Reflux.createStore
|
|
current: -> null
|
|
|
|
FocusedContactsStore = proxyquire '../../src/flux/stores/focused-contacts-store',
|
|
"./message-store": MessageStoreStub
|
|
"./namespace-store": NamespaceStoreStub
|
|
|
|
describe "FocusedContactsStore", ->
|
|
beforeEach ->
|
|
FocusedContactsStore._currentThreadId = null
|
|
FocusedContactsStore._clearCurrentParticipants(silent: true)
|
|
|
|
it "returns no contacts with empty", ->
|
|
expect(FocusedContactsStore.sortedContacts()).toEqual []
|
|
|
|
it "returns no focused contact when empty", ->
|
|
expect(FocusedContactsStore.focusedContact()).toBeNull()
|