diff --git a/src/exo5/exo5.test.ts b/src/exo5/exo5.test.ts index a13e040..9a118d4 100644 --- a/src/exo5/exo5.test.ts +++ b/src/exo5/exo5.test.ts @@ -1,5 +1,6 @@ import { option } from 'fp-ts'; import { + getCountryCurrencyOfOptionalCountryCode, getValidCountryCodeOfCountryNames, giveCurrencyOfCountryToUser, performAsyncComputationInParallel, @@ -7,6 +8,23 @@ import { } from './exo5'; describe('exo5', () => { + describe('getCountryCurrencyOfOptionalCountryCode', () => { + it('should return a Task if given a None', async () => { + const result = await getCountryCurrencyOfOptionalCountryCode( + option.none, + )(); + + expect(result).toStrictEqual(option.none); + }); + + it('should return a Task