Mailspring/internal_packages/composer/spec
Halla Moore f6e48ea7e4 fix(specs): Revive the ComposerView specs
Summary:
We need to wait for the `DraftEditingSession` to set it's draft before we can
pass it to the composer. I've modified these tests to properly wait for the
draft promise. Additionally, I removed the `DraftStore.isSendingDraft()` stub
so we run the actual logic for determing if a draft can be sent. We had some
tests with this stub, but then we had other tests that made sure it worked
without the stub, and I don't see why we don't just run the tests without the
stub to begin with. I added a stub to `@session.ensureCorrectAccount()`
to get around issues with committing the draft's change set.

Test Plan: Ran the suite!

Reviewers: evan, juan

Reviewed By: evan, juan

Differential Revision: https://phab.nylas.com/D3834
2017-02-03 14:15:39 -08:00
..
collapsed-participants-spec.cjsx feat(babel6): Convert to use new es6 require syntax 2016-05-06 11:54:55 -07:00
composer-header-actions-spec.cjsx feat(babel6): Convert to use new es6 require syntax 2016-05-06 11:54:55 -07:00
composer-header-spec.jsx lint(*): Fix issue breaking the build 2016-09-20 16:34:30 -07:00
composer-view-spec.cjsx fix(specs): Revive the ComposerView specs 2017-02-03 14:15:39 -08:00
quoted-text-spec.cjsx fix(quoted-text): Check that message is reply 2016-07-21 17:45:47 -07:00
send-action-button-spec.jsx lint(send-action-button): Whoa nylaslint just chill 😂 2016-10-27 15:06:51 -07:00