Last active
July 28, 2018 03:24
-
-
Save FagnerMartinsBrack/27529f3e61e91210eff7674b9f1c1f7c to your computer and use it in GitHub Desktop.
(Medium) - One Test For Each Model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const stubbedPrefill = Prefill(StubbedProvider()); | |
stubbedPrefill.add(MappingLogic(forAgeCalculation)); | |
const prefilledFormFields = stubbedPrefill.prefill(FormFields()); | |
expect(prefilledFormFields.toString()).toEqual('age: 32 years'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment