mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-21 22:54:11 +08:00
lint(send-action-button): Whoa nylaslint just chill 😂
This commit is contained in:
parent
85782c7b27
commit
020cc06b36
2 changed files with 7 additions and 4 deletions
|
@ -123,5 +123,6 @@ Object.assign(EnhancedSendActionButton.prototype, {
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
export const UndecoratedSendActionButton = SendActionButton
|
EnhancedSendActionButton.UndecoratedSendActionButton = SendActionButton
|
||||||
|
|
||||||
export default EnhancedSendActionButton
|
export default EnhancedSendActionButton
|
||||||
|
|
|
@ -2,7 +2,9 @@ import React from 'react';
|
||||||
import {mount} from 'enzyme';
|
import {mount} from 'enzyme';
|
||||||
import {ButtonDropdown, RetinaImg} from 'nylas-component-kit';
|
import {ButtonDropdown, RetinaImg} from 'nylas-component-kit';
|
||||||
import {Actions, Message, SendActionsStore} from 'nylas-exports';
|
import {Actions, Message, SendActionsStore} from 'nylas-exports';
|
||||||
import {UndecoratedSendActionButton as SendActionButton} from '../lib/send-action-button';
|
import SendActionButton from '../lib/send-action-button';
|
||||||
|
|
||||||
|
const {UndecoratedSendActionButton} = SendActionButton;
|
||||||
|
|
||||||
const {DefaultSendAction} = SendActionsStore
|
const {DefaultSendAction} = SendActionsStore
|
||||||
|
|
||||||
|
@ -40,7 +42,7 @@ describe('SendActionButton', function describeBlock() {
|
||||||
const render = (draft, {isValid = true, sendActions = [], ordered = {}} = {}) => {
|
const render = (draft, {isValid = true, sendActions = [], ordered = {}} = {}) => {
|
||||||
this.isValidDraft.andReturn(isValid)
|
this.isValidDraft.andReturn(isValid)
|
||||||
return mount(
|
return mount(
|
||||||
<SendActionButton
|
<UndecoratedSendActionButton
|
||||||
draft={draft}
|
draft={draft}
|
||||||
isValidDraft={this.isValidDraft}
|
isValidDraft={this.isValidDraft}
|
||||||
sendActions={[DefaultSendAction].concat(sendActions)}
|
sendActions={[DefaultSendAction].concat(sendActions)}
|
||||||
|
@ -54,7 +56,7 @@ describe('SendActionButton', function describeBlock() {
|
||||||
|
|
||||||
it("renders without error", () => {
|
it("renders without error", () => {
|
||||||
const sendActionButton = render(this.draft);
|
const sendActionButton = render(this.draft);
|
||||||
expect(sendActionButton.is(SendActionButton)).toBe(true);
|
expect(sendActionButton.is(UndecoratedSendActionButton)).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("initializes with the default and shows the standard Send option", () => {
|
it("initializes with the default and shows the standard Send option", () => {
|
||||||
|
|
Loading…
Reference in a new issue