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

Update deprecated multerOpts reference, update test #221

Merged
merged 2 commits into from
Jan 16, 2020

Conversation

JacobLey
Copy link
Collaborator

Adding failing test first. Will follow up with fix + link to issue

}));

});
expect(fileNames).to.deep.equal(['package.json']);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what the best pattern here is (e.g. should fileNames really be unchanged on all tests, and cleared before each? Or maybe it somehow only exists in this test?)
The "filter" function just seemed like an easy way to check that multer is actually receiving the options + file

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is fine for now. i don't have better idea atm. we can improve the test later if needed

}));

});
expect(fileNames).to.deep.equal(['package.json']);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is fine for now. i don't have better idea atm. we can improve the test later if needed

@cdimascio cdimascio merged commit 3ec58bb into cdimascio:master Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants