Skip to content

Adding tests to pr/233#235

Draft
Roy-vl wants to merge 2 commits intowbotelhos:mainfrom
Roy-vl:adding-tests-to-pr/233
Draft

Adding tests to pr/233#235
Roy-vl wants to merge 2 commits intowbotelhos:mainfrom
Roy-vl:adding-tests-to-pr/233

Conversation

@Roy-vl
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
Contributor

@wbotelhos Could you check this?

@wbotelhos
Copy link
Copy Markdown
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.

4 participants