Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. describe('tests for method clubEntryPrice', () => {
  2. it('returns 0$ when input sex is female and age is more than 18', () => {
  3. expect(entry.clubEntryPrice('female', 18)).toBe(0)
  4. });
  5. it('returns 10$ when input sex is male and age is more than 18', () => {
  6. expect(entry.clubEntryPrice('male', 18)).toBe(10)
  7. });
  8. it('returns "noAccess" when input age is below 18', () => {
  9. expect(entry.clubEntryPrice('male', 17)).toBe('noAccess')
  10. });
  11. }
  12. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement