Mailspring/spec-nylas/tasks/mark-thread-read-spec.coffee
Evan Morikawa fc4b3b56d7 refactor(utils): switch to regular underscore
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
2015-05-19 16:06:59 -07:00

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()