biome format --write
This commit is contained in:
parent
8372348148
commit
9262e803ec
415 changed files with 54076 additions and 17419 deletions
|
|
@ -4,14 +4,14 @@ import { createStore } from 'vuex'
|
|||
|
||||
const store = createStore({
|
||||
state: {
|
||||
instance: {}
|
||||
}
|
||||
instance: {},
|
||||
},
|
||||
})
|
||||
|
||||
describe('routes', () => {
|
||||
const router = createRouter({
|
||||
history: createMemoryHistory(),
|
||||
routes: routes(store)
|
||||
routes: routes(store),
|
||||
})
|
||||
|
||||
it('root path', async () => {
|
||||
|
|
@ -20,25 +20,40 @@ describe('routes', () => {
|
|||
const matchedComponents = router.currentRoute.value.matched
|
||||
|
||||
// eslint-disable-next-line no-prototype-builtins
|
||||
expect(Object.hasOwn(matchedComponents[0].components.default.components, 'Timeline')).to.eql(true)
|
||||
expect(
|
||||
Object.hasOwn(
|
||||
matchedComponents[0].components.default.components,
|
||||
'Timeline',
|
||||
),
|
||||
).to.eql(true)
|
||||
})
|
||||
|
||||
it('user\'s profile', async () => {
|
||||
it("user's profile", async () => {
|
||||
await router.push('/fake-user-name')
|
||||
|
||||
const matchedComponents = router.currentRoute.value.matched
|
||||
|
||||
// eslint-disable-next-line no-prototype-builtins
|
||||
expect(Object.hasOwn(matchedComponents[0].components.default.components, 'UserCard')).to.eql(true)
|
||||
expect(
|
||||
Object.hasOwn(
|
||||
matchedComponents[0].components.default.components,
|
||||
'UserCard',
|
||||
),
|
||||
).to.eql(true)
|
||||
})
|
||||
|
||||
it('user\'s profile at /users', async () => {
|
||||
it("user's profile at /users", async () => {
|
||||
await router.push('/users/fake-user-name')
|
||||
|
||||
const matchedComponents = router.currentRoute.value.matched
|
||||
|
||||
// eslint-disable-next-line no-prototype-builtins
|
||||
expect(Object.hasOwn(matchedComponents[0].components.default.components, 'UserCard')).to.eql(true)
|
||||
expect(
|
||||
Object.hasOwn(
|
||||
matchedComponents[0].components.default.components,
|
||||
'UserCard',
|
||||
),
|
||||
).to.eql(true)
|
||||
})
|
||||
|
||||
it('list view', async () => {
|
||||
|
|
@ -46,7 +61,12 @@ describe('routes', () => {
|
|||
|
||||
const matchedComponents = router.currentRoute.value.matched
|
||||
|
||||
expect(Object.hasOwn(matchedComponents[0].components.default.components, 'ListsCard')).to.eql(true)
|
||||
expect(
|
||||
Object.hasOwn(
|
||||
matchedComponents[0].components.default.components,
|
||||
'ListsCard',
|
||||
),
|
||||
).to.eql(true)
|
||||
})
|
||||
|
||||
it('list timeline', async () => {
|
||||
|
|
@ -54,7 +74,12 @@ describe('routes', () => {
|
|||
|
||||
const matchedComponents = router.currentRoute.value.matched
|
||||
|
||||
expect(Object.hasOwn(matchedComponents[0].components.default.components, 'Timeline')).to.eql(true)
|
||||
expect(
|
||||
Object.hasOwn(
|
||||
matchedComponents[0].components.default.components,
|
||||
'Timeline',
|
||||
),
|
||||
).to.eql(true)
|
||||
})
|
||||
|
||||
it('list edit', async () => {
|
||||
|
|
@ -62,6 +87,11 @@ describe('routes', () => {
|
|||
|
||||
const matchedComponents = router.currentRoute.value.matched
|
||||
|
||||
expect(Object.hasOwn(matchedComponents[0].components.default.components, 'BasicUserCard')).to.eql(true)
|
||||
expect(
|
||||
Object.hasOwn(
|
||||
matchedComponents[0].components.default.components,
|
||||
'BasicUserCard',
|
||||
),
|
||||
).to.eql(true)
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue