Skip to content

Commit f6f50c0

Browse files
[autofix.ci] apply automated fixes
1 parent b8dd395 commit f6f50c0

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

app/pages/package/[[org]]/[name]/dependents.vue

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,8 @@ useSeoMeta({
171171
>
172172
{{ $t('common.previous') }}
173173
</ButtonBase>
174-
<span class="text-sm text-fg-muted font-mono">
175-
{{ page + 1 }} / {{ totalPages }}
176-
</span>
177-
<ButtonBase
178-
variant="secondary"
179-
:disabled="page >= totalPages - 1"
180-
@click="nextPage"
181-
>
174+
<span class="text-sm text-fg-muted font-mono"> {{ page + 1 }} / {{ totalPages }} </span>
175+
<ButtonBase variant="secondary" :disabled="page >= totalPages - 1" @click="nextPage">
182176
{{ $t('common.next') }}
183177
<span class="i-lucide:chevron-right w-4 h-4" aria-hidden="true" />
184178
</ButtonBase>

test/unit/app/server/dependents.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ describe('dependents API response mapping', () => {
4343
it('maps npm search objects to the expected package shape', () => {
4444
const objects: NpmSearchObject[] = [
4545
{
46-
package: { name: 'some-lib', version: '1.2.3', description: 'A library', date: '2024-01-01' },
46+
package: {
47+
name: 'some-lib',
48+
version: '1.2.3',
49+
description: 'A library',
50+
date: '2024-01-01',
51+
},
4752
score: { final: 0.95 },
4853
searchScore: 100,
4954
},

0 commit comments

Comments
 (0)