test: add property "testData" on instance (#8037)

This commit is contained in:
LIUCHAO 2022-06-02 10:54:54 +08:00 committed by GitHub
parent 809923ceb1
commit e0821baa8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1448,6 +1448,9 @@ describe('Table.vue', () => {
</el-table>
</div>
`,
created() {
this.testData = getTestData()
},
})
await nextTick()
expect(wrapper.find('.right').element.getAttribute('style')).toContain(