import React from 'react'; import { shallow } from 'enzyme'; import assert from 'assert'; import WeUI from '../src/index'; const {Msg, Icon, Button, Footer} = WeUI; describe('', ()=> { const type = 'success'; const title = '成功'; const description = '感谢你的反馈'; const buttons = [{ type: 'primary', label: '确定', onClick: ()=>{ console.log('ok'); } }]; const TestFooter = () =>