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

Adding tests to pr/233 #235

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

Roy-vl
Copy link

@Roy-vl Roy-vl commented May 23, 2022

No description provided.

markvantilburg and others added 2 commits October 1, 2021 11:23
Defined initial test to check if the function calls _starname with correct parameters
Copy link
Collaborator

@houndci-bot houndci-bot left a comment

Choose a reason for hiding this comment

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

Some files could not be reviewed due to errors:

.eslintrc:
.eslintrc:
	Environment key "es2021" is unknown

Error: .eslintrc:
at /home/linters/app/versions/eslint-4.19.1/node_modules/eslint/lib/config/config-validator.js:144:19
at Array.forEach ()
at validateEnvironment (/home/linters/app/versions/eslint-4.19.1/node_modules/eslint/lib/config/config-validator.js:140:30)
at Object.validate (/home/linters/app/versions/eslint-4.19.1/node_modules/eslint/lib/config/config-validator.js:240:5)
at loadFromDisk (/home/linters/app/versions/eslint-4.19.1/node_modules/eslint/lib/config/config-file.js:516:19)
at Object.load (/home/linters/app/versions/eslint-4.19.1/node_modules/eslint/lib/config/config-file.js:559:20)
at Config.getLocalConfigHierarchy (/home/linters/app/versions/eslint-4.19.1/node_modules/eslint/lib/config.js:227:44)
at Config.getConfigHierarchy (/home/linters/app/versions/eslint-4.19.1/node_modules/eslint/lib/config.js:179:43)
at Config.getConfigVector (/home/linters/app/versions/eslint-4.19.1/node_modules/eslint/lib/config.js:286:21)
at Config.getConfig (/home/linters/app/versions/eslint-4.19.1/node_modules/eslint/lib/config.js:329:29)

@markvantilburg
Copy link
Contributor

@wbotelhos Could you check this?

@wbotelhos
Copy link
Owner

Hi @markvantilburg , thanks for your PR.

About the current test, I think you're testing an intermediate step that does not prove anything, just that it was called. We need to test the final result which would be this._setIcon(star, icon); call. This call can receive one star or another, depending on the score.

We need a test for _setTitle too, and in this case, we need to test the final value of star.title.

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.

None yet

4 participants