feat: add volunteer shift signup app
Initial source, tests, migrations, and local Docker setup for the Hope Food Pantry volunteer scheduler.
This commit is contained in:
commit
f1a46e2ba7
129 files changed
+25290
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { normalizeEmail } from '../src/email.js';
|
||||
|
||||
describe('normalizeEmail', () => {
|
||||
it('trims and lowercases without removing dots', () => {
|
||||
expect(normalizeEmail(' Ada@Example.com ')).toBe('ada@example.com');
|
||||
expect(normalizeEmail('a.b+tag@gmail.com')).toBe('a.b+tag@gmail.com');
|
||||
});
|
||||
|
||||
it('rejects a blank address', () => {
|
||||
expect(() => normalizeEmail(' ')).toThrow(/email/i);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user