Enhancement: add barcode frontend config (#9742)

This commit is contained in:
shamoon authored and GitHub committed 2025-05-11 19:44:06 +00:00
1 parent bcb0ae1ee5
commit 6a5be992c0
9 files changed
+437 -49

No files matched your search

@@ -105,9 +105,9 @@ describe('ConfigComponent', () => {
it('should support JSON validation for e.g. user_args', () => {
component.configForm.patchValue({ user_args: '{ foo bar }' })
expect(component.errors).toEqual({ user_args: 'Invalid JSON' })
expect(component.errors['user_args']).toEqual('Invalid JSON')
component.configForm.patchValue({ user_args: '{ "foo": "bar" }' })
expect(component.errors).toEqual({ user_args: null })
expect(component.errors['user_args']).toBeNull()
})
it('should upload file, show error if necessary', () => {