mirror of
https://github.com/IliesAllali/parenthese.git
synced 2026-11-10 15:52:14 +00:00
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
19 lines
711 B
TypeScript
19 lines
711 B
TypeScript
import { describe, expect, it } from 'vitest'
|
||
|
||
import { sharePasswordVariants } from '../src/lib/password-variants'
|
||
|
||
describe('sharePasswordVariants', () => {
|
||
it('ajoute la forme droite et la forme typographique de l\'apostrophe', () => {
|
||
expect(sharePasswordVariants('Lavenuedel’Avenir')).toContain("Lavenuedel'Avenir")
|
||
expect(sharePasswordVariants("Lavenuedel'Avenir")).toContain('Lavenuedel’Avenir')
|
||
})
|
||
|
||
it('retire les espaces autour sans toucher à la casse', () => {
|
||
expect(sharePasswordVariants(' Soleil ')).toEqual([' Soleil ', 'Soleil'])
|
||
})
|
||
|
||
it('ne change rien à un mot de passe simple', () => {
|
||
expect(sharePasswordVariants('123soleil')).toEqual(['123soleil'])
|
||
})
|
||
})
|