import * as assert from 'power-assert' import { delay, minify } from './utils' import { atto } from '../src/atto' import { x } from '../src/x' import { Component } from '../src/Component'; beforeEach(() => { document.body.innerHTML = '' }) test('Fragments', async () => { const view = ( (props, children) => ( x(x, {}, [ (
a
), (
b
) ]) ) // @todo TypeScriptがFragmentsに未対応? // <> //
a
//
b
// ) as Component const mutate = atto(view, document.body) mutate({}) await delay(10) const html = minify`
a
b
` assert(document.body.innerHTML == html) })