feat: redesign match play and add broadcast tooling
This commit is contained in:
11
src/lib/auth-identity.test.ts
Normal file
11
src/lib/auth-identity.test.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { expect, test } from 'vitest';
|
||||
import { contactEmail, newAuthIdentity } from './auth-identity';
|
||||
|
||||
test('internal identities are never contact email addresses', () => {
|
||||
expect(contactEmail('123@osu.local')).toBeNull();
|
||||
expect(contactEmail('123@discord.local')).toBeNull();
|
||||
expect(contactEmail(newAuthIdentity())).toBeNull();
|
||||
expect(contactEmail(null)).toBeNull();
|
||||
expect(contactEmail(' Person@Example.com ')).toBe('person@example.com');
|
||||
expect(newAuthIdentity()).not.toBe(newAuthIdentity());
|
||||
});
|
||||
Reference in New Issue
Block a user