mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-04-06 01:25:31 +00:00
Fix test
This commit is contained in:
parent
08778f3798
commit
de0bcd949a
@ -1,6 +1,6 @@
|
|||||||
import gql from 'graphql-tag'
|
import gql from 'graphql-tag'
|
||||||
|
|
||||||
export default (i18n) => {
|
export default i18n => {
|
||||||
const lang = i18n.locale().toUpperCase()
|
const lang = i18n.locale().toUpperCase()
|
||||||
return gql(`
|
return gql(`
|
||||||
query Post($filter: _PostFilter, $first: Int, $offset: Int) {
|
query Post($filter: _PostFilter, $first: Int, $offset: Int) {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import gql from 'graphql-tag'
|
import gql from 'graphql-tag'
|
||||||
|
|
||||||
export default (i18n) => {
|
export default i18n => {
|
||||||
const lang = i18n.locale().toUpperCase()
|
const lang = i18n.locale().toUpperCase()
|
||||||
return gql(`
|
return gql(`
|
||||||
query User($id: ID!) {
|
query User($id: ID!) {
|
||||||
|
|||||||
@ -20,7 +20,13 @@ describe('ProfileSlug', () => {
|
|||||||
name: 'It is a post',
|
name: 'It is a post',
|
||||||
},
|
},
|
||||||
$t: jest.fn(),
|
$t: jest.fn(),
|
||||||
// If you mocking router, than don't use VueRouter with lacalVue: https://vue-test-utils.vuejs.org/guides/using-with-vue-router.html
|
// If you mocking router, than don't use VueRouter with localVue: https://vue-test-utils.vuejs.org/guides/using-with-vue-router.html
|
||||||
|
$route: {
|
||||||
|
params: {
|
||||||
|
id: '4711',
|
||||||
|
slug: 'john-doe',
|
||||||
|
},
|
||||||
|
},
|
||||||
$router: {
|
$router: {
|
||||||
history: {
|
history: {
|
||||||
push: jest.fn(),
|
push: jest.fn(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user