Skip to content

Commit 3419e4f

Browse files
committed
chore(tests): mark tag-definition test fixtures as const
1 parent 51826e4 commit 3419e4f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/sim/app/api/knowledge/[id]/tag-definitions/route.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import { GET, POST } from '@/app/api/knowledge/[id]/tag-definitions/route'
2828
const KB_ID = 'kb-victim'
2929
const TAG_DEFINITIONS = [
3030
{ id: 'tag-def-1', tagSlot: 'tag1', displayName: 'Client Name', fieldType: 'text' },
31-
]
32-
const CREATE_BODY = { tagSlot: 'tag1', displayName: 'Injected', fieldType: 'text' }
31+
] as const
32+
const CREATE_BODY = { tagSlot: 'tag1', displayName: 'Injected', fieldType: 'text' } as const
3333

3434
const params = () => ({ params: Promise.resolve({ id: KB_ID }) })
3535

@@ -44,7 +44,7 @@ function authenticateAs(userId?: string, authType = 'internal_jwt') {
4444
})
4545
}
4646

47-
const granted = { hasAccess: true, knowledgeBase: { id: KB_ID, userId: 'user-1' } }
47+
const granted = { hasAccess: true, knowledgeBase: { id: KB_ID, userId: 'user-1' } } as const
4848

4949
describe('Knowledge Base Tag Definitions API Route', () => {
5050
beforeEach(() => {

0 commit comments

Comments
 (0)