@wolframkriesing
@jbrains @borillo
@codecopkofler So, if you use types, the
loader would be properly type as "async () => Car[]", therefor the only test
that's neccessary here is that loadCars calls it once, and if no arguments are
passed that's it.
1 reply
@wolframkriesing
@jbrains @borillo
@codecopkofler If your loader e.g. supports
pagination, than the test needs to verify that loadCars uses the API correctly,
but that becomes a re-usable test for all "loader" consumers.