sinProject-Inc/talk

View on GitHub
src/lib/chat/chat_name.test.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { expect, it } from 'vitest'
import { ChatName } from './chat_name'

it('empty', () => {
    expect(() => new ChatName('')).toThrow('ChatName must be at least 1 character long.')
})

it('en-US', () => {
    expect(new ChatName('Ryan').value).toEqual('Ryan')
})