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

chore: added tests for fragment hooks #298

Merged
merged 3 commits into from
May 25, 2021
Merged

Conversation

ifree92
Copy link
Contributor

@ifree92 ifree92 commented May 20, 2021

No description provided.

@ifree92 ifree92 requested review from StyleT and nightnei May 20, 2021 13:27
const fragmentAttrs = getFragmentAttributes();
const headers = {};

insertEnd(mockStream, fragmentAttrs, headers, 0);
Copy link
Contributor

@nightnei nightnei May 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like "index" isn't used inside "insertStart", probably we can remove it from module and from tests too

offtop: I think would be better to create a variable before providing raw parameter to a function, since it's unreal to understand what is the fourth parameter, e.g.

const indexOfSomething = 0;
insertEnd(mockStream, fragmentAttrs, headers, indexOfSomething);

@ifree92 ifree92 merged commit f59f896 into master May 25, 2021
@ifree92 ifree92 deleted the addTestsForFragmentHooks branch May 25, 2021 06:40
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.

3 participants