TecKnow / STADiceRoller

Dice roller and probability visualizer compatible with the Star Trek Adventures TTRPG.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Fix test labeling #12

Closed TecKnow closed 1 year ago

TecKnow commented 1 year ago

In the tests against static data, unfilled format specifiers can currently be seen. This is because the static data includes cases with different numbers of arguments. If there aren't enough arguments to fill all the format specifiers, Jest just leaves the specifier in place, such as %o for objects.

It should be possible to separate the test cases by class and then have separate methods per class, so that the test name format strings can be appropriate.