-
Notifications
You must be signed in to change notification settings - Fork 1
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
Test matches passes when the files are't the same #13
Comments
Oh I see. That's a good catch @arszh |
We can declare In my opinion, maybe I wrong, we can delete the try/catch altogether because:
If important to remove created file after this test:
|
this is the test we're referring to, right?
in which case, the expectation is within a try/catch only for the sake of cleaning-up. In this case, how about we simply clean up in a Jest's afterAll() hook? Surely it's not as clean as with doing this within every test, but for the sake of this small lib seems not far fetched. Looks like you are suggesting the same so 👍 from me and I'm happy to merge a PR if you have a bit of time to send it over. |
sizes of correct created excel file and old sample were not the same lirantal#13
remove try/catch and add afterall fix lirantal#13
fixed in #18 |
Test "Creating an Excel file from form matches previous sample file'"passes when the files are't the same , because
expect
inside 'try/catch'. Jest has issue #3917 about this problem.There is also a problem that the actual file from "sample.xlsx" and the exported file have different sizes.
Expected Behavior
if a actual and a expected files have different sizes then test fails
Current Behavior
Test always passes.
Possible Solution
Steps to Reproduce (for bugs)
expected.size
oractual.size
to any numberContext
I met this problem when worked on #12
Your Environment
The text was updated successfully, but these errors were encountered: