11import Nerv , { findDOMNode } from 'nervjs'
22import { renderToString } from 'nerv-server'
33import { Simulate , renderIntoDocument } from 'nerv-test-utils'
4-
5- import AtButton from '../../../.temp/components/button/index'
4+ import AtButton from '../../.temp/components/button/index'
65
76describe ( 'AtButton Snap' , ( ) => {
87 it ( 'render AtButton -- props size(normal)' , ( ) => {
@@ -50,7 +49,9 @@ describe('AtButton Event', () => {
5049 it ( 'AtButton onClick' , ( ) => {
5150 const onClick = jest . fn ( )
5251
53- const component = renderIntoDocument ( < AtButton onClick = { onClick } > 按钮</ AtButton > )
52+ const component = renderIntoDocument (
53+ < AtButton onClick = { onClick } > 按钮</ AtButton >
54+ )
5455 const componentDom = findDOMNode ( component , 'at-button' )
5556
5657 Simulate . click ( componentDom )
@@ -60,7 +61,11 @@ describe('AtButton Event', () => {
6061 it ( 'AtButton disabled, onClick not to be called' , ( ) => {
6162 const onClick = jest . fn ( )
6263
63- const component = renderIntoDocument ( < AtButton disabled onClick = { onClick } > 按钮</ AtButton > )
64+ const component = renderIntoDocument (
65+ < AtButton disabled onClick = { onClick } >
66+ 按钮
67+ </ AtButton >
68+ )
6469 const componentDom = findDOMNode ( component , 'at-button' )
6570
6671 Simulate . click ( componentDom )
0 commit comments