1234567891011121314151617181920212223242526272829 |
- const path = require('path')
- const expect = require('chai').expect
- describe('component', () => {
- it ('should run successfully', () => {
-
- const id = simulate.load(path.resolve(__dirname, 'component/diy-icongroup'))
- const comp = simulate.render(id, {prop: 'index.test.properties'})
- comp.attach(document.body)
- expect(simulate.match(comp.dom, '<wx-view class="main--index">index.test.properties</wx-view>')).to.equal(true)
- })
- })
|