-
Notifications
You must be signed in to change notification settings - Fork 0
feat(source): intern images on POST check internal on PUT #74
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
Conversation
|
This PR will trigger a minor release when merged. |
test/source/utils.test.js
Outdated
| try { | ||
| await getValidHtml(setupContext(), Buffer.from(htmlIn), [], {}); | ||
| assert.fail('Expected an error to be thrown'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use assert.rejects()
test/source/utils.test.js
Outdated
| assert.fail('Expected an error to be thrown'); | ||
| } catch (e) { | ||
| assert.equal(e.statusCode, 400); | ||
| assert.equal(e.errorCode, 'AEM_BACKEND_MP4_PARSING_FAILED'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use assert.rejects()
tripodsan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, tests can be improved.
Co-authored-by: Tobias Bocanegra <[email protected]>
Co-authored-by: Tobias Bocanegra <[email protected]>
|
I have rewritten the tests that expect an Error to use One thought I have about this is that if you have the if you accidentally forget the |
# [1.26.0](v1.25.1...v1.26.0) (2026-01-08) ### Features * **source:** intern images on POST check internal on PUT ([#74](#74)) ([7b45695](7b45695))
|
🎉 This PR is included in version 1.26.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Related Issues
Contributes to #43