You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
452 B
18 lines
452 B
import { twoFer } from './two-fer' |
|
|
|
describe('TwoFer', () => { |
|
it('no name given', () => { |
|
const expected = 'One for you, one for me.' |
|
expect(twoFer()).toEqual(expected) |
|
}) |
|
|
|
it('a name given', () => { |
|
const expected = 'One for Alice, one for me.' |
|
expect(twoFer('Alice')).toEqual(expected) |
|
}) |
|
|
|
it('another name given', () => { |
|
const expected = 'One for Bob, one for me.' |
|
expect(twoFer('Bob')).toEqual(expected) |
|
}) |
|
})
|
|
|