UNPKG

533 BJavaScriptView Raw
1/**
2 * Test case for component.
3 * Runs with mocha.
4 */
5'use strict'
6
7const ApLabel = require('../lib/ap_label.js').default
8const ReactDOM = require('react-dom/server')
9const React = require('react')
10const assert = require('assert')
11
12describe('apLabel', () => {
13 it('ApLabel', (done) => {
14 let html = ReactDOM.renderToString(
15 React.createElement('div',
16 {},
17 React.createElement(ApLabel, {})
18 )
19 )
20 console.log(html)
21 assert.ok(html)
22 done()
23 })
24})
25
26/* global describe, before, after, it */