Projektarten: Art beim Zuweisen und nach Repo-Anlage
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8653756935
commit
c16049d266
4 files changed
+92
-9
No files matched your search
@@ -70,3 +70,12 @@ test('openTicketsFor', () => {
|
||||
assert.deepEqual(openTicketsFor(t, 'c1').map((x) => x.$id), ['1', '5'])
|
||||
assert.deepEqual(openTicketsFor(null, 'c1'), [])
|
||||
})
|
||||
|
||||
test('kindLabelFor: Label aus Katalog, leer = Art fehlt', async () => {
|
||||
const { kindLabelFor } = await loadModule('src/lib/assignFlow.js')
|
||||
const kinds = [{ key: 'website', label: 'Website' }, { key: 'app', label: 'App' }]
|
||||
assert.equal(kindLabelFor(kinds, 'app'), 'App')
|
||||
assert.equal(kindLabelFor(kinds, ''), 'Art fehlt')
|
||||
assert.equal(kindLabelFor(kinds, undefined), 'Art fehlt')
|
||||
assert.equal(kindLabelFor(kinds, 'unbekannt'), 'unbekannt')
|
||||
})
|
||||
Reference in new issue
Block a user