import * as Nerv from 'nervjs' import $ from 'webpack-zepto' import sinon from 'sinon' import Textarea from '../' import { VNode } from 'nerv-shared' describe('textarea test', () => { let scratch beforeAll(() => { scratch = document.createElement('div') document.body.appendChild(scratch) }) beforeEach(() => { scratch = document.createElement('div') document.body.appendChild(scratch) }) afterEach(() => { scratch.parentNode.removeChild(scratch) scratch = null }) it('basic render', () => { const textareaJSX =