Skip to content

Commit

Permalink
test: fix base-currency test
Browse files Browse the repository at this point in the history
  • Loading branch information
albertjcuac committed Aug 15, 2024
1 parent 266b349 commit 632933e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
import { mount, Wrapper } from '@vue/test-utils';
import Vue, { defineComponent, provide, ref } from 'vue';
import { mount, VueWrapper } from '@vue/test-utils';
import { defineComponent, provide, ref } from 'vue';
import BaseCurrency from '../base-currency.vue';

function renderBaseCurrency({ value, format }: RenderBaseCurrencyOptions): Wrapper<Vue> {
function renderBaseCurrency({ value, format }: RenderBaseCurrencyOptions): VueWrapper {
return mount(
{
components: { BaseCurrency },
template: `<BaseCurrency :value="value" :format="format"/>`,
props: ['value', 'format']
},
{
propsData: {
props: {
value,
format
}
}
);
}

function renderInjectedBaseCurrency({ value, format }: RenderBaseCurrencyOptions): Wrapper<Vue> {
function renderInjectedBaseCurrency({ value, format }: RenderBaseCurrencyOptions): VueWrapper {
const Provider = defineComponent({
setup() {
const providedFormat = ref('$i,iii.ddd');
Expand Down

0 comments on commit 632933e

Please sign in to comment.