Skip to content

Commit c246906

Browse files
committed
test(library): type the comparison fixture's tags so the cast to ContentMeta type-checks
1 parent 51f95e0 commit c246906

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/sim/app/(landing)/comparisons/library-links.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { describe, expect, it } from 'vitest'
22
import type { ContentMeta } from '@/lib/content/schema'
33
import { getComparisonsForPost } from '@/app/(landing)/comparisons/library-links'
44

5-
function post(title: string, description: string): ContentMeta {
6-
return { slug: 'post', title, description, tags: [] } as ContentMeta
5+
function post(title: string, description: string, tags: string[] = []): ContentMeta {
6+
return { slug: 'post', title, description, tags } as ContentMeta
77
}
88

99
describe('getComparisonsForPost', () => {

0 commit comments

Comments
 (0)