This commit is contained in:
2022-09-26 16:04:50 +02:00
parent b5cdf3b2d1
commit 3143b36871
13 changed files with 4812 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
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)
})
})