Metis portal provides a user-friendly frontend for the Metis API which is written in Vue.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
339 B

4 years ago
  1. import { shallowMount } from '@vue/test-utils'
  2. import HelloWorld from '@/components/HelloWorld.vue'
  3. describe('HelloWorld.vue', () => {
  4. it('renders props.msg when passed', () => {
  5. const msg = 'new message'
  6. const wrapper = shallowMount(HelloWorld, {
  7. propsData: { msg }
  8. })
  9. expect(wrapper.text()).toMatch(msg)
  10. })
  11. })