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 unit test #1

Open
retzd-tech opened this issue Sep 28, 2021 · 5 comments
Open

Add unit test #1

retzd-tech opened this issue Sep 28, 2021 · 5 comments
Assignees
Labels
good first issue Good for newcomers hacktoberfest Hacktoberfest Label

Comments

@retzd-tech
Copy link
Member

No description provided.

@retzd-tech retzd-tech added good first issue Good for newcomers hacktoberfest Hacktoberfest Label labels Sep 28, 2021
@avinash-tiwari
Copy link

@retzd-tech I wanna take up on this issue.

@avinash-tiwari
Copy link

avinash-tiwari commented Sep 30, 2021

@retzd-tech There are no components here to add a unit test to, what is the expected behavior here? Shall, I add support for unit-test for future?

@retzd-tech
Copy link
Member Author

@retzd-tech There are no components here to add a unit test to, what is the expected behavior here? Shall, I add support for unit-test for future?

Components ? you have to make a unit test for the functions. not components.

@retzd-tech
Copy link
Member Author

@retzd-tech There are no components here to add a unit test to, what is the expected behavior here? Shall, I add support for unit-test for future?

Oh i got it.

Basically you have to expect the list of the files inside content.
and expect the files is truthy.
maybe you can use fs.readFile ? and then if the files are present then it is true and expect that.

because files inside content is sync with other repos and should not missing any of it.

@avinash-tiwari
Copy link

@retzd-tech Cool, will work on the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers hacktoberfest Hacktoberfest Label
Projects
None yet
Development

No branches or pull requests

2 participants