diff --git a/src/badge/test/__snapshots__/index.spec.js.snap b/src/badge/test/__snapshots__/index.spec.js.snap index 261e7f64e..8e52fe049 100644 --- a/src/badge/test/__snapshots__/index.spec.js.snap +++ b/src/badge/test/__snapshots__/index.spec.js.snap @@ -6,8 +6,12 @@ exports[`should render content slot correctly 1`] = ` `; -exports[`should render nothing when badge is empty string 1`] = ``; +exports[`should render nothing when content is empty string 1`] = ``; -exports[`should render nothing when badge is undefined 1`] = ``; +exports[`should render nothing when content is undefined 1`] = ``; -exports[`should render nothing when badge is zero 1`] = ``; +exports[`should render nothing when content is zero 1`] = ` +
+ 0 +
+`; diff --git a/src/badge/test/index.spec.js b/src/badge/test/index.spec.js index 1c68fbf03..86984be2d 100644 --- a/src/badge/test/index.spec.js +++ b/src/badge/test/index.spec.js @@ -1,30 +1,30 @@ import Badge from '..'; import { mount } from '@vue/test-utils'; -test('should render nothing when badge is empty string', () => { +test('should render nothing when content is empty string', () => { const wrapper = mount(Badge, { props: { - badge: '', + content: '', }, }); expect(wrapper.html()).toMatchSnapshot(); }); -test('should render nothing when badge is undefined', () => { +test('should render nothing when content is undefined', () => { const wrapper = mount(Badge, { props: { - badge: undefined, + content: undefined, }, }); expect(wrapper.html()).toMatchSnapshot(); }); -test('should render nothing when badge is zero', () => { +test('should render nothing when content is zero', () => { const wrapper = mount(Badge, { props: { - badge: 0, + content: 0, }, });