The goal is to create tests for common use cases, as well as edge cases that should work with d3-geomap. For example missing values in a CSV file should not cause errors that stop the map from rendering.
To add a new test:
Pick a map from the examples directory, that has no tests yet.
Create a JavaScript file in the tests directory with the same name.
Write code that tests what the example is meant to show, e.g. if the example shows how to add a custom legend, the test should at least check its visibility.
Take a look at the existing tests for additional guidance.
The goal is to create tests for common use cases, as well as edge cases that should work with d3-geomap. For example missing values in a CSV file should not cause errors that stop the map from rendering.
To add a new test:
examples
directory, that has no tests yet.tests
directory with the same name.Take a look at the existing tests for additional guidance.