Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How would one mock this for testing? #25

Open
gianpaj opened this issue Nov 6, 2018 · 0 comments
Open

How would one mock this for testing? #25

gianpaj opened this issue Nov 6, 2018 · 0 comments
Labels

Comments

@gianpaj
Copy link

gianpaj commented Nov 6, 2018

I see @google-cloud/storage has some sort of mocking in place. Would work for this library?
https://github.com/googleapis/nodejs-storage/blob/e46f69eb82014f50586cd8525e3af7ca15490c29/samples/system-test/quickstart.test.js

It would be great to have a way of testing a function/API that uses multer-sharp but actually nothing gets uploaded and the tests are much faster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants