From 020cc06b36c4f4c5d3b1e6c554a6ad5e7f35b521 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Thu, 27 Oct 2016 15:06:51 -0700 Subject: [PATCH] =?UTF-8?q?lint(send-action-button):=20Whoa=20nylaslint=20?= =?UTF-8?q?just=20chill=20=F0=9F=98=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal_packages/composer/lib/send-action-button.jsx | 3 ++- .../composer/spec/send-action-button-spec.jsx | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/internal_packages/composer/lib/send-action-button.jsx b/internal_packages/composer/lib/send-action-button.jsx index 306b14742..dc6825eb1 100644 --- a/internal_packages/composer/lib/send-action-button.jsx +++ b/internal_packages/composer/lib/send-action-button.jsx @@ -123,5 +123,6 @@ Object.assign(EnhancedSendActionButton.prototype, { }, }) -export const UndecoratedSendActionButton = SendActionButton +EnhancedSendActionButton.UndecoratedSendActionButton = SendActionButton + export default EnhancedSendActionButton diff --git a/internal_packages/composer/spec/send-action-button-spec.jsx b/internal_packages/composer/spec/send-action-button-spec.jsx index 6fdff92d0..369a514af 100644 --- a/internal_packages/composer/spec/send-action-button-spec.jsx +++ b/internal_packages/composer/spec/send-action-button-spec.jsx @@ -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( - { 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", () => {