mocktail icon indicating copy to clipboard operation
mocktail copied to clipboard

docs(mocktail): use same pattern for stubbing

Open davidlj95 opened this issue 2 years ago โ€ข 0 comments

Status

READY

Breaking Changes

NO

Description

Noticed that in last section of README.md , about the Why am I seeing error: type 'Null' is not a subtype of type 'Future<void>'? issue, the example stubs without adding a callback. Propose to use a callback there to avoid misunderstandings. Despite anyway it's equivalent, if the guide consistently reminds using callbacks, I think would be nice to use them in that example too.

Type of Change

  • [ ] โœจ New feature (non-breaking change which adds functionality)
  • [ ] ๐Ÿ› ๏ธ Bug fix (non-breaking change which fixes an issue)
  • [ ] โŒ Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] ๐Ÿงน Code refactor
  • [ ] โœ… Build configuration change
  • [x] ๐Ÿ“ Documentation
  • [ ] ๐Ÿ—‘๏ธ Chore

davidlj95 avatar May 30 '22 11:05 davidlj95