Finished part 3 of #321 to use sinon instead of the manual fake. Along with removing the old exportAPI test helper.
cc @mattseddon
Design
Originally I was thinking of using sinon mocks but after reading though the documentation [1] it appears that these are more correctly called stubs in sinon land, heh [2].
I also turfed the exportAPI helpers for the extension tests and adopted the sinon spy instead [3], pretty happy with the results!
Work
[x] use sinon stub for fakeConfig
[x] refactor fakeConfig name to stub
[x] remove exportAPI concept and use sinon spies instead
Description
Finished part 3 of #321 to use sinon instead of the manual fake. Along with removing the old exportAPI test helper. cc @mattseddon
Design
Originally I was thinking of using sinon mocks but after reading though the documentation [1] it appears that these are more correctly called stubs in sinon land, heh [2].
I also turfed the exportAPI helpers for the extension tests and adopted the sinon spy instead [3], pretty happy with the results!
Work
Research