import getPasswordContent from './getPasswordContent' import { PasswordContent } from './getPasswordContent.types' describe('getPasswordContent()', () => { it('should be true if we generate upperCase value', () => { const randomValue = getPasswordContent.upperCase() expect(PasswordContent.UPPERCASE.includes(randomValue)).toBe(true) }) it('should be true if we generate lowerCase value', () => { const randomValue = getPasswordContent.lowerCase() expect(PasswordContent.LOWERCASE.includes(randomValue)).toBe(true) }) it('should be true if we generate number value', () => { const randomValue = getPasswordContent.number() expect(PasswordContent.NUMBER.includes(randomValue)).toBe(true) }) it('should be true if we generate BASIC symbol value', () => { const randomValue = getPasswordContent.symbol() expect(PasswordContent.BASIC_SYMBOL.includes(randomValue)).toBe(true) }) })