learningequality / kolibri

Kolibri Learning Platform: the offline app for universal education
https://learningequality.org/kolibri/
MIT License
784 stars 650 forks source link

Write tests for the `useQuizResources` module #12033

Open nucleogenesis opened 6 months ago

nucleogenesis commented 6 months ago

Overview

The quiz creation updates added a new useQuizResources module that extends an also-new useFetchTree module. useFetchTree has tests written for it but useQuizResources does not.

Acceptance criteria

There is no real need to test that the useFetchTree modules do what they're supposed to so they can likely just be mocked to return a suitable data structure.

oge1ata commented 5 months ago

Hi @nucleogenesis could I take a look at this isuse?

MisRob commented 5 months ago

Hi @oge1ata, thank you for volunteering, looking at the issue I think this could be open for contribution. It may help to spend some time looking at existing test suites, such as useFetchTree that @nucleogenesis referenced.

oge1ata commented 5 months ago

Hey @MisRob Thanks for the assignment. I'd take a look at it and tell you if I have any issues.

MisRob commented 4 months ago

Hi @oge1ata, are you still planning to work in this?