| Total Complexity | 4 |
| Complexity/F | 1 |
| Lines of Code | 15 |
| Function Count | 4 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import { twoFer } from './two-fer' |
||
| 2 | |||
| 3 | describe('twoFer()', () => { |
||
| 4 | test('no name given', () => { |
||
| 5 | expect(twoFer()).toEqual("One for you, one for me.") |
||
| 6 | }) |
||
| 7 | |||
| 8 | test('a name given', () => { |
||
| 9 | expect(twoFer("Alice")).toEqual("One for Alice, one for me.") |
||
| 10 | }) |
||
| 11 | |||
| 12 | test('another name given', () => { |
||
| 13 | expect(twoFer("Bob")).toEqual("One for Bob, one for me.") |
||
| 14 | }) |
||
| 15 | }) |
||
| 16 |