mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-17 11:21:29 +00:00
12 lines
459 B
TypeScript
12 lines
459 B
TypeScript
import { getDocumentOperationLabel } from './document-operation'
|
|
|
|
describe('Document Operation Utils', () => {
|
|
it('should retrieve the document operation label correctly for an existing operation, null otherwise', () => {
|
|
const result = getDocumentOperationLabel('modify_custom_fields')
|
|
expect(result).toBe('Update custom fields')
|
|
|
|
const resultNull = getDocumentOperationLabel('non_existing_operation')
|
|
expect(resultNull).toBeNull()
|
|
})
|
|
})
|