mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +08:00
fc4b3b56d7
Summary: Fixes: T1334 remove final InboxApp references move out all underscore-plus methods Mass find and replace of underscore-plus sed -i '' -- 's/underscore-plus/underscore/g' **/*.coffee sed -i '' -- 's/underscore-plus/underscore/g' **/*.cjsx Test Plan: edgehill --test Reviewers: bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D1534
30 lines
1.1 KiB
CoffeeScript
30 lines
1.1 KiB
CoffeeScript
Actions = require '../../src/flux/actions'
|
|
AddRemoveTagsTask = require '../../src/flux/tasks/add-remove-tags'
|
|
MarkThreadReadTask = require '../../src/flux/tasks/mark-thread-read'
|
|
DatabaseStore = require '../../src/flux/stores/database-store'
|
|
Thread = require '../../src/flux/models/thread'
|
|
_ = require 'underscore'
|
|
|
|
describe "MarkThreadReadTask", ->
|
|
beforeEach ->
|
|
@thread = new Thread
|
|
id: '1233123AEDF1'
|
|
namespaceId: 'A12ADE'
|
|
subject: 'New Thread'
|
|
unread: true
|
|
to:
|
|
name: 'Dummy'
|
|
email: 'dummy@nylas.com'
|
|
@task = new MarkThreadReadTask(@thread)
|
|
|
|
describe "performLocal", ->
|
|
it "should call through to its superclass", ->
|
|
spyOn(AddRemoveTagsTask.prototype, 'performLocal').andCallFake -> Promise.resolve()
|
|
@task.performLocal()
|
|
expect(AddRemoveTagsTask.prototype.performLocal).toHaveBeenCalled()
|
|
|
|
describe "performRemote", ->
|
|
it "should call through to its superclass", ->
|
|
spyOn(AddRemoveTagsTask.prototype, 'performRemote')
|
|
@task.performRemote()
|
|
expect(AddRemoveTagsTask.prototype.performRemote).toHaveBeenCalled()
|