UNPKG

525 BJavaScriptView Raw
1/**
2 * Test case for component.
3 * Runs with mocha.
4 */
5'use strict'
6
7const ApDraggable = require('../lib/ap_draggable.js').default
8const assert = require('assert')
9const React = require('react')
10const ReactDOM = require('react-dom/server')
11
12it('ApDraggable', (done) => {
13 let html = ReactDOM.renderToString(
14 React.createElement('html',
15 {},
16 React.createElement(ApDraggable, {},
17 React.createElement('div', {}, 'foo')
18 )
19 )
20 )
21 console.log(html)
22 assert.ok(html)
23 done()
24})
25
26/* global it */
\No newline at end of file