BaseCase / testdouble-chai

Chai assertions for testdouble.js
MIT License
18 stars 4 forks source link

Expose code as an AMD module #5

Closed alexlafroscia closed 8 years ago

alexlafroscia commented 8 years ago

I wanted to use this with Ember but without an AMD module, there wasn't a good way to import it. This change just avoids only exporting through module.exports and adds the ability to export that or an AMD module (or a global variable, if neither of those options are available).

I didn't explicit add an automated test for the AMD export, but I was able to pull it into Ember with these changes present.

BaseCase commented 8 years ago

Hey @alexlafroscia, thanks for the PR! Sorry it took me so long to get to it; I was on vacation without Internet access. Let me take a look real quick and then I'm sure I'll merge it in :)

alexlafroscia commented 8 years ago

No worries! Glad it made it in 😁