You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
471 B
14 lines
471 B
import { React } from 'jimu-core'
|
|
import _Widget from '../src/runtime/widget'
|
|
import { widgetRender, wrapWidget } from 'jimu-for-test'
|
|
|
|
const render = widgetRender()
|
|
describe('test simple widget', () => {
|
|
it('simple test', () => {
|
|
const Widget = wrapWidget(_Widget, {
|
|
config: { exampleConfigProperty: 'a' }
|
|
})
|
|
const { queryByText } = render(<Widget widgetId="Widget_1" />)
|
|
expect(queryByText('exampleConfigProperty: a').tagName).toBe('P')
|
|
})
|
|
})
|