-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add test/playlist.test.js #2
base: main
Are you sure you want to change the base?
Conversation
|
||
expect(res.outputGroupSettings.type === 'MS_SMOOTH_GROUP_SETTINGS'); | ||
expect(res.outputGroupSettings.msSmoothGroupSettings.destination).toBe('s3://outputs/'); | ||
expect(res.outputGroupSettings.msSmoothGroupSettings.fragmentLength).toBeDefined(); |
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.
Can we compare with the actual fragment length that's returned? In this case 2
.
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.
Overall LGTM. Left few comments
const res = Playlist(playlist); | ||
expect(res.outputGroupSettings.type === 'HLS_GROUP_SETTINGS'); | ||
expect(res.outputGroupSettings.hlsGroupSettings.destination).toBe('s3://outputs/'); | ||
expect(res.outputGroupSettings.hlsGroupSettings.minSegmentLength).toBeDefined(); |
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.
Same - Can we compare with the actual values that's returned? for minSegmentLength & segmentLength.
expect(res.outputGroupSettings.type === 'DASH_ISO_GROUP_SETTINGS'); | ||
expect(res.outputGroupSettings.dashIsoGroupSettings.destination).toBe('s3://outputs/'); | ||
expect(res.outputGroupSettings.dashIsoGroupSettings.fragmentLength).toBeDefined(); | ||
expect(res.outputGroupSettings.dashIsoGroupSettings.segmentLength).toBeDefined(); |
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.
Same - Can we compare with the actual values that's returned? for fragmentLength & segmentLength.
Issue #, if available:
Description of changes:
Add unit test file
test/palylist.test.js
.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.