|
|
@@ -4,7 +4,7 @@ import { mount } from '@vue/test-utils';
|
|
|
test('should render nothing when content is empty string', () => {
|
|
|
const wrapper = mount(Badge, {
|
|
|
props: {
|
|
|
- content: ''
|
|
|
+ value: ''
|
|
|
}
|
|
|
});
|
|
|
|
|
|
@@ -14,7 +14,7 @@ test('should render nothing when content is empty string', () => {
|
|
|
test('should render nothing when content is undefined', () => {
|
|
|
const wrapper = mount(Badge, {
|
|
|
props: {
|
|
|
- content: undefined
|
|
|
+ value: undefined
|
|
|
}
|
|
|
});
|
|
|
|
|
|
@@ -24,7 +24,7 @@ test('should render nothing when content is undefined', () => {
|
|
|
test('should render nothing when content is zero', () => {
|
|
|
const wrapper = mount(Badge, {
|
|
|
props: {
|
|
|
- content: 0
|
|
|
+ value: 0
|
|
|
}
|
|
|
});
|
|
|
|
|
|
@@ -34,7 +34,7 @@ test('should render nothing when content is zero', () => {
|
|
|
test('should render content slot correctly', () => {
|
|
|
const wrapper = mount(Badge, {
|
|
|
slots: {
|
|
|
- content: () => 'Custom Content'
|
|
|
+ default: () => 'Custom Content'
|
|
|
}
|
|
|
});
|
|
|
|