blob: 9a0cf533d3d1e7f4360db6236afc8f564520bad4 (
plain) (
tree)
|
|
import { twoFer } from './two-fer';
describe('twoFer()', () => {
test('no name given', () => {
expect(twoFer()).toEqual('One for you, one for me.');
});
test('a name given', () => {
expect(twoFer('Alice')).toEqual('One for Alice, one for me.');
});
test('another name given', () => {
expect(twoFer('Bob')).toEqual('One for Bob, one for me.');
});
});
|