mirror of
https://github.com/stablyai/orca.git
synced 2026-10-20 16:03:20 +00:00
test(mobile): strengthen snapshot regression
This commit is contained in:
@@ -23,11 +23,14 @@ let tr = raw
|
||||
const box = { nested: { tr } }
|
||||
const { nested: { tr: snapshot } } = box
|
||||
tr = t
|
||||
export const label = <Text>{snapshot('mobileWorkspaceStatuses.todo')}</Text>
|
||||
export const label = <><Text>{box.nested.tr('mobileWorkspaceStatuses.todo')}</Text><Text>{snapshot('mobileWorkspaceStatuses.progress')}</Text></>
|
||||
`
|
||||
|
||||
expect(translationKeys(source)).toEqual([])
|
||||
expect(candidateTexts(source)).toEqual(['mobileWorkspaceStatuses.todo'])
|
||||
expect(candidateTexts(source)).toEqual([
|
||||
'mobileWorkspaceStatuses.todo',
|
||||
'mobileWorkspaceStatuses.progress'
|
||||
])
|
||||
})
|
||||
|
||||
it('keeps property writes scoped to the current object allocation', () => {
|
||||
|
||||
Reference in New Issue
Block a user