lint
This commit is contained in:
parent
b37b75c473
commit
eca1422ad0
2 changed files with 16 additions and 18 deletions
3
test/fixtures/setup_test.js
vendored
3
test/fixtures/setup_test.js
vendored
|
|
@ -1,3 +1,4 @@
|
|||
import { createTestingPinia } from '@pinia/testing'
|
||||
import { config } from '@vue/test-utils'
|
||||
import { createMemoryHistory, createRouter } from 'vue-router'
|
||||
import VueVirtualScroller from 'vue-virtual-scroller'
|
||||
|
|
@ -5,9 +6,7 @@ import VueVirtualScroller from 'vue-virtual-scroller'
|
|||
import RichContent from 'src/components/rich_content/rich_content.jsx'
|
||||
import Status from 'src/components/status/status.vue'
|
||||
import StillImage from 'src/components/still-image/still-image.vue'
|
||||
|
||||
import makeMockStore from './mock_store'
|
||||
import { createTestingPinia } from '@pinia/testing'
|
||||
|
||||
import routes from 'src/boot/routes'
|
||||
|
||||
|
|
|
|||
|
|
@ -37,10 +37,9 @@ describe('routes', () => {
|
|||
|
||||
const matchedComponents = router.currentRoute.value.matched
|
||||
|
||||
expect(
|
||||
matchedComponents[0].components.default.name,
|
||||
).to.eql('AsyncComponentWrapper')
|
||||
|
||||
expect(matchedComponents[0].components.default.name).to.eql(
|
||||
'AsyncComponentWrapper',
|
||||
)
|
||||
})
|
||||
|
||||
it("user's profile at /users", async () => {
|
||||
|
|
@ -48,9 +47,9 @@ describe('routes', () => {
|
|||
|
||||
const matchedComponents = router.currentRoute.value.matched
|
||||
|
||||
expect(
|
||||
matchedComponents[0].components.default.name,
|
||||
).to.eql('AsyncComponentWrapper')
|
||||
expect(matchedComponents[0].components.default.name).to.eql(
|
||||
'AsyncComponentWrapper',
|
||||
)
|
||||
})
|
||||
|
||||
it('list view', async () => {
|
||||
|
|
@ -58,9 +57,9 @@ describe('routes', () => {
|
|||
|
||||
const matchedComponents = router.currentRoute.value.matched
|
||||
|
||||
expect(
|
||||
matchedComponents[0].components.default.name,
|
||||
).to.eql('AsyncComponentWrapper')
|
||||
expect(matchedComponents[0].components.default.name).to.eql(
|
||||
'AsyncComponentWrapper',
|
||||
)
|
||||
})
|
||||
|
||||
it('list timeline', async () => {
|
||||
|
|
@ -68,9 +67,9 @@ describe('routes', () => {
|
|||
|
||||
const matchedComponents = router.currentRoute.value.matched
|
||||
|
||||
expect(
|
||||
matchedComponents[0].components.default.name,
|
||||
).to.eql('AsyncComponentWrapper')
|
||||
expect(matchedComponents[0].components.default.name).to.eql(
|
||||
'AsyncComponentWrapper',
|
||||
)
|
||||
})
|
||||
|
||||
it('list edit', async () => {
|
||||
|
|
@ -78,8 +77,8 @@ describe('routes', () => {
|
|||
|
||||
const matchedComponents = router.currentRoute.value.matched
|
||||
|
||||
expect(
|
||||
matchedComponents[0].components.default.name,
|
||||
).to.eql('AsyncComponentWrapper')
|
||||
expect(matchedComponents[0].components.default.name).to.eql(
|
||||
'AsyncComponentWrapper',
|
||||
)
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue