mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-02-06 09:55:47 +00:00
fix: use 'as const' for isNew literal type in SuggestionList tests
This commit is contained in:
parent
c48aed88cd
commit
1a91aa5310
@ -31,7 +31,7 @@ describe('SuggestionList Component', () => {
|
||||
})
|
||||
|
||||
it('renders "new tag" option with Neu: prefix', () => {
|
||||
const items = [createTestTag('existing'), { isNew: true, name: 'newtag' }]
|
||||
const items = [createTestTag('existing'), { isNew: true as const, name: 'newtag' }]
|
||||
const command = cy.stub()
|
||||
|
||||
mount(<SuggestionList items={items} command={command} type='hashtag' />)
|
||||
@ -98,7 +98,7 @@ describe('SuggestionList Component', () => {
|
||||
})
|
||||
|
||||
it('calls command with new tag item', () => {
|
||||
const newItem = { isNew: true, name: 'newtag' }
|
||||
const newItem = { isNew: true as const, name: 'newtag' }
|
||||
const items = [newItem]
|
||||
const command = cy.stub().as('command')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user