lint(send-action-button): Whoa nylaslint just chill 😂

This commit is contained in:
Ben Gotow 2016-10-27 15:06:51 -07:00
parent 85782c7b27
commit 020cc06b36
2 changed files with 7 additions and 4 deletions

View file

@ -123,5 +123,6 @@ Object.assign(EnhancedSendActionButton.prototype, {
},
})
export const UndecoratedSendActionButton = SendActionButton
EnhancedSendActionButton.UndecoratedSendActionButton = SendActionButton
export default EnhancedSendActionButton

View file

@ -2,7 +2,9 @@ import React from 'react';
import {mount} from 'enzyme';
import {ButtonDropdown, RetinaImg} from 'nylas-component-kit';
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
@ -40,7 +42,7 @@ describe('SendActionButton', function describeBlock() {
const render = (draft, {isValid = true, sendActions = [], ordered = {}} = {}) => {
this.isValidDraft.andReturn(isValid)
return mount(
<SendActionButton
<UndecoratedSendActionButton
draft={draft}
isValidDraft={this.isValidDraft}
sendActions={[DefaultSendAction].concat(sendActions)}
@ -54,7 +56,7 @@ describe('SendActionButton', function describeBlock() {
it("renders without error", () => {
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", () => {