mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 01:54:40 +08:00
fix(spec): fix injected component spec
This commit is contained in:
parent
1498bcfac6
commit
e1f689de6f
1 changed files with 7 additions and 1 deletions
|
@ -1,9 +1,15 @@
|
|||
/* eslint react/prefer-es6-class: "off" */
|
||||
/* eslint react/prefer-stateless-function: "off" */
|
||||
|
||||
import {React, ComponentRegistry, NylasTestUtils} from 'nylas-exports';
|
||||
import {InjectedComponentSet} from 'nylas-component-kit';
|
||||
const {renderIntoDocument} = NylasTestUtils;
|
||||
|
||||
const reactStub = (displayName) => {
|
||||
return <div className={displayName}></div>;
|
||||
return React.createClass({
|
||||
displayName,
|
||||
render() { return <div className={displayName}></div>; },
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue