fix issues

This commit is contained in:
2026-01-01 22:46:59 +01:00
parent 206a03ec48
commit 79913bb45e
336 changed files with 3932 additions and 76 deletions

View File

@@ -0,0 +1,9 @@
import { describe, it, expect } from 'vitest';
import { parseApiError, getErrorSeverity } from './errorUtils';
describe('errorUtils', () => {
it('should be defined', () => {
expect(parseApiError).toBeDefined();
expect(getErrorSeverity).toBeDefined();
});
});

View File

@@ -0,0 +1,13 @@
import { describe, it, expect } from 'vitest';
import { emailValidation } from './validation';
describe('validation', () => {
it('should be defined', () => {
expect(emailValidation).toBeDefined();
});
it('should validate emails', () => {
expect(emailValidation('bad').isValid).toBe(false);
expect(emailValidation('a@b.com').isValid).toBe(true);
});
});