5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-05 18:21:16 +08:00
wails/cmd/templates/vue3-full/frontend/tests/unit/example.spec.ts
Kyle Muchmore 5e2373acb1 single quotes and tabs
Converted vue.config.js to using single quotes
Converted example.spec.ts to tabs instead of spaces.
2020-10-25 20:30:08 +11:00

14 lines
358 B
TypeScript

import { expect } from 'chai'
import { shallowMount } from '@vue/test-utils'
import HelloWorld from '@/components/HelloWorld.vue'
describe('HelloWorld.vue', () => {
it('renders props.msg when passed', () => {
const msg = 'new message';
const wrapper = shallowMount(HelloWorld, {
props: { msg }
});
expect(wrapper.text()).to.include(msg);
})
})