jaikamat / clubhouse-pos-importer

Monorepo for an LGS's inventory management system
1 stars 0 forks source link

Refactor receiving context methods and testing #284

Closed jaikamat closed 3 years ago

jaikamat commented 3 years ago

Summary

This PR creates a testing suite for the receiving context, and alters a few of its methods to accept whole ReceivingCard objects rather than uuids, which I believe semantically improve its API.

We also export a wrapper over the useContext hook, called useReceivingContext to simplify our imports.