Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
import React from 'inferno-compat';
import { createComponentVNode } from 'inferno';
import { Wrapper } from 'inferno-test-utils';
import { VNodeFlags } from 'inferno-vnode-flags';
var ReactDOM = React;
var div = React.createFactory('div');
describe('ReactDOM', function() {
let container;
function renderIntoDocument(input) {
return React.render(createComponentVNode(VNodeFlags.ComponentClass, Wrapper, { children: input }), container);
}
beforeEach(() => {
container = document.createElement('div');
document.body.appendChild(container);
});
afterEach(() => {
React.render(null, container);
container.innerHTML = '';