Skip to content

Commit

Permalink
Linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GordyD committed Dec 14, 2017
1 parent 44aaf67 commit ad91e15
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ describe('BeforeInputEventPlugin', () => {

function loadReactDOM(envSimulator) {
jest.resetModules();
!!envSimulator && envSimulator();
if (envSimulator) {
envSimulator();
}
return require('react-dom');
}

Expand Down Expand Up @@ -556,7 +558,7 @@ describe('BeforeInputEventPlugin', () => {
},
];

const testInputComponent = (env, scenarios) => {
const testInputComponent = (env, scenes) => {
let event;
let spy;
ReactDOM = loadReactDOM(env.emulator);
Expand All @@ -571,15 +573,15 @@ describe('BeforeInputEventPlugin', () => {
container,
);

scenarios.forEach((s, id) => {
scenes.forEach((s, id) => {
event = null;
spy = jest.fn();
s.eventSimulator.apply(null, [node, ...s.eventSimulatorArgs]);
env.assertions[id].run(event, spy);
});
};

const testContentEditableComponent = (env, scenarios) => {
const testContentEditableComponent = (env, scenes) => {
let event;
let spy;
ReactDOM = loadReactDOM(env.emulator);
Expand All @@ -594,7 +596,7 @@ describe('BeforeInputEventPlugin', () => {
container,
);

scenarios.forEach((s, id) => {
scenes.forEach((s, id) => {
event = null;
spy = jest.fn();
s.eventSimulator.apply(null, [node, ...s.eventSimulatorArgs]);
Expand Down

0 comments on commit ad91e15

Please sign in to comment.