mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
title test terms-and-conditions-confirm.spec.js
This commit is contained in:
parent
02c3e0a763
commit
427c6f0488
@ -1,7 +1,9 @@
|
||||
import { config, mount } from '@vue/test-utils'
|
||||
import TermsAndConditionsConfirm from './terms-and-conditions-confirm.vue'
|
||||
import VueMeta from 'vue-meta'
|
||||
|
||||
const localVue = global.localVue
|
||||
localVue.use(VueMeta, { keyName: 'head' })
|
||||
|
||||
config.stubs['nuxt-link'] = '<span class="nuxt-link"><slot /></span>'
|
||||
|
||||
@ -11,7 +13,7 @@ describe('terms-and-conditions-confirm.vue', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
mocks = {
|
||||
$t: jest.fn(),
|
||||
$t: (t) => t,
|
||||
}
|
||||
})
|
||||
|
||||
@ -30,5 +32,9 @@ describe('terms-and-conditions-confirm.vue', () => {
|
||||
it('renders', () => {
|
||||
expect(wrapper.is('div')).toBe(true)
|
||||
})
|
||||
|
||||
it('has correct <head> content', () => {
|
||||
expect(wrapper.vm.$metaInfo.title).toBe('termsAndConditions.newTermsAndConditions')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user