blob: 9a0cf533d3d1e7f4360db6236afc8f564520bad4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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.');
});
});
|