Skip to content

Commit

Permalink
chore: add base progress circle base test
Browse files Browse the repository at this point in the history
  • Loading branch information
stafyniaksacha committed Nov 8, 2024
1 parent 5ac90cb commit 8ecbb17
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/components/base/BaseProgressCircle.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { BaseProgressCircle } from '#components'
import { mount } from '@vue/test-utils'
import { describe, expect, it } from 'vitest'

describe('component: BaseProgressCircle', () => {
describe('usage', () => {
it('should show default slot', async () => {
const component = mount(BaseProgressCircle, {
props: {
value: 12,
max: 42,
}
})
const svg = component.get('svg')
expect(svg.attributes('aria-valuenow')).toBe('12')
expect(svg.attributes('aria-valuemax')).toBe('42')
})
})
})

0 comments on commit 8ecbb17

Please sign in to comment.