Skip to content

Commit

Permalink
Merge pull request #114 from selemondev/icon-test
Browse files Browse the repository at this point in the history
chore: Icon test
  • Loading branch information
selemondev authored Aug 10, 2023
2 parents 10d0b5f + 9a36ebe commit 3ee22de
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/windi/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ module.exports = {
},
},
},
plugins: [],
plugins: [require()],
}
17 changes: 17 additions & 0 deletions test/components/icon.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { mount } from '@vue/test-utils'
import { describe, expect, it } from 'vitest'
import Icon from '../../packages/windi/src/components/Icon/WIcon.vue'

const icon = 'ph:sun'
describe('Icon', () => {
it('should render with an icon prop', async () => {
const wrapper = mount(Icon, {
props: {
name: icon,
},
})
expect(wrapper.exists()).toBeTruthy()
})

// TODO
})

0 comments on commit 3ee22de

Please sign in to comment.