Updated controller.scatter.test.js to test default tooltip callbacks#5967
Conversation
|
@Madrussian did you see I'm not sure that this test really belongs in |
simonbrunel
left a comment
There was a problem hiding this comment.
@Madrussian it totally makes sense to have it in controller.scatter.test.js since it's testing scatter defaults callbacks defined in the scatter controller. Just a minor change to make it simpler.
|
But do we need to test the tooltip functionality again? Maybe we should just test that the default config matches what we expect? Like in https://github.com/chartjs/Chart.js/blob/master/test/specs/scale.time.tests.js#L54 |
We are not really testing tooltip functionalities but that the default options are correctly consumed. Testing defaults as in the time scale doesn't guarantee that we don't break the current behavior, which is an empty title and |
- This moves the mouse over the drawn point and verifies that there is no title in the tooltip and that the body contains expected content.
4ca06b3 to
b11d643
Compare
etimberg
left a comment
There was a problem hiding this comment.
Left one minor comment. Am ok with the content of the test
|
Thanks @Madrussian |
This moves the mouse over the drawn point and verifies that there is no title in the tooltip and that the body contains expected content.
What changed
no title in the tooltip and that the body contains expected.
Reason for change
Testing