Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lego-technix authored and yannbertrand committed Jan 3, 2023
1 parent 7d825c0 commit 36bdc2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Index Page renders properly 1`] = `
exports[`LocalizedHome Page renders properly 1`] = `
"<div class=\\"index\\">
<prismic-custom-slice-zone-stub slices=\\"[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]\\"></prismic-custom-slice-zone-stub>
</div>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import VueMeta from 'vue-meta'
import { getInitialised, createLocalVue } from './utils'
import { documentFetcher, TAGS } from '~/services/document-fetcher'
import { documentFetcher } from '~/services/document-fetcher'
import getMeta, { fallbackDescription } from '~/services/meta-builder'

const localVue = createLocalVue()
Expand All @@ -10,7 +10,7 @@ localVue.use(VueMeta, { keyName: 'head' })

jest.mock('~/services/document-fetcher')

describe.skip('Index Page', () => {
describe('LocalizedHome Page', () => {
let wrapper
const PRISMIC_META = 'meta info'
const PRISMIC_TITLE = 'title'
Expand Down Expand Up @@ -41,7 +41,7 @@ describe.skip('Index Page', () => {
},
}),
})
wrapper = await getInitialised(TAGS.INDEX, {
wrapper = await getInitialised('localized-home', {
localVue,
computed: {
$prismic() {
Expand Down Expand Up @@ -77,7 +77,7 @@ describe.skip('Index Page', () => {
})

test('uses the fallback meta description when not filled in Prismic', async () => {
wrapper = await getInitialised(TAGS.INDEX, {
wrapper = await getInitialised('localized-home', {
localVue,
computed: {
$prismic() {
Expand Down

0 comments on commit 36bdc2d

Please sign in to comment.