Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe('tests for method clubEntryPrice', () => {
- it('returns 0$ when input sex is female and age is more than 18', () => {
- expect(entry.clubEntryPrice('female', 18)).toBe(0)
- });
- it('returns 10$ when input sex is male and age is more than 18', () => {
- expect(entry.clubEntryPrice('male', 18)).toBe(10)
- });
- it('returns "noAccess" when input age is below 18', () => {
- expect(entry.clubEntryPrice('male', 17)).toBe('noAccess')
- });
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement