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

Add test/playlist.test.js #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add test/playlist.test.js #2

wants to merge 1 commit into from

Conversation

wangchj
Copy link
Contributor

@wangchj wangchj commented Jan 8, 2025

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.

@wangchj wangchj requested a review from PavanRangudu January 8, 2025 00:32

expect(res.outputGroupSettings.type === 'MS_SMOOTH_GROUP_SETTINGS');
expect(res.outputGroupSettings.msSmoothGroupSettings.destination).toBe('s3://outputs/');
expect(res.outputGroupSettings.msSmoothGroupSettings.fragmentLength).toBeDefined();

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.

Copy link

@PavanRangudu PavanRangudu left a 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();

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();

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.

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