You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
369 B
15 lines
369 B
import test from 'ava';
|
|
import React from 'react';
|
|
import ReactJSDOM from 'this';
|
|
|
|
test('ReactJSDOM is a object', t => {
|
|
t.is(typeof ReactJSDOM, 'object');
|
|
});
|
|
|
|
test('ReactJSDOM renders a React Component', t => {
|
|
const component = ReactJSDOM.render(
|
|
React.createElement('div', {}, 'hi')
|
|
);
|
|
t.is(component.nodeName, 'DIV');
|
|
t.is(component.textContent, 'hi');
|
|
});
|
|
|