Mailspring/spec-nylas/stores/focused-contacts-store-spec.coffee
Ben Gotow f8c5f7b967 refactor(db): change ID system to have clientIDs and serverIDs
Summary: Major ID refactor

Test Plan: edgehill --test

Reviewers: bengotow, dillon

Differential Revision: https://phab.nylas.com/D1946
2015-08-28 11:24:29 -07:00

15 lines
521 B
CoffeeScript

proxyquire = require 'proxyquire'
Reflux = require 'reflux'
FocusedContactsStore = require '../../src/flux/stores/focused-contacts-store'
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()