two-fer.test.ts 454 B

123456789101112131415161718
  1. import { twoFer } from './two-fer'
  2. describe('TwoFer', () => {
  3. it('no name given', () => {
  4. const expected = 'One for you, one for me.'
  5. expect(twoFer()).toEqual(expected)
  6. })
  7. xit('a name given', () => {
  8. const expected = 'One for Alice, one for me.'
  9. expect(twoFer('Alice')).toEqual(expected)
  10. })
  11. xit('another name given', () => {
  12. const expected = 'One for Bob, one for me.'
  13. expect(twoFer('Bob')).toEqual(expected)
  14. })
  15. })