biome format --write

This commit is contained in:
Henry Jameson 2026-01-06 16:22:52 +02:00
commit 9262e803ec
415 changed files with 54076 additions and 17419 deletions

View file

@ -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)
})
})