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

Expand tests and test sharp #54

Merged
merged 4 commits into from
Feb 12, 2024
Merged

Expand tests and test sharp #54

merged 4 commits into from
Feb 12, 2024

Conversation

jdub233
Copy link
Contributor

@jdub233 jdub233 commented Feb 7, 2024

  • Simplifies the reference to the bucket name to make it easier to control for unit testing
  • Adds a mocked S3 response consisting of a valid one-pixel JPEG image
  • Runs the simulated image through the sharp library to confirm that it can scale the image
  • Expands on the existing tests

Declaring the variable as a const outside of the function scope makes it more difficult to run unit tests. Using it directly makes it easier for unit tests to control the value.
and run it through the tests, engaging the sharp library to make sure it works
@jdub233 jdub233 merged commit 905d78f into main Feb 12, 2024
2 checks passed
@jdub233 jdub233 deleted the sharp-tests branch February 12, 2024 17:59
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.

1 participant