Skip to content

Commit

Permalink
test: add snapshots for Tag
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixiaorui committed Jan 10, 2021
1 parent 8cb3cd5 commit 3240bab
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/element3/src/components/Tag/tests/Tag.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { ref, nextTick } from 'vue'
import { setupGlobalOptions } from '../../../use/globalConfig'

describe('Tag.vue', () => {
it('snapshot', () => {
const wrapper = mount(Tag)
expect(wrapper.element).toMatchSnapshot()
})
it('normal render', () => {
const wrapper = mount(Tag)
const result = wrapper.findComponent(Tag).exists()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Tag.vue snapshot 1`] = `
<transition-stub>
<span
class="el-tag el-tag--light"
>
<!---->
<!---->
</span>
</transition-stub>
`;

0 comments on commit 3240bab

Please sign in to comment.