Skip to content

Instantly share code, notes, and snippets.

@FagnerMartinsBrack
Last active July 28, 2018 03:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FagnerMartinsBrack/27529f3e61e91210eff7674b9f1c1f7c to your computer and use it in GitHub Desktop.
Save FagnerMartinsBrack/27529f3e61e91210eff7674b9f1c1f7c to your computer and use it in GitHub Desktop.
(Medium) - One Test For Each Model
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