Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Positive Case for readAllUserDataFiles Function #116

Open
emmalgs opened this issue Aug 31, 2023 · 0 comments
Open

Test Positive Case for readAllUserDataFiles Function #116

emmalgs opened this issue Aug 31, 2023 · 0 comments

Comments

@emmalgs
Copy link

emmalgs commented Aug 31, 2023

Ticket: Test Positive Case for readAllUserDataFiles Function

What it is: Write a test case to verify the positive case of the readAllUserDataFiles function, where all user data files are read successfully.

Context: Testing the positive case of this function ensures that it correctly processes and aggregates data from all user data files.

Acceptance Criteria:

  • Inside the describe block for readAllUserDataFiles, write a test case with an appropriate description (e.g., "should read and return data for all user data files").
  • Utilize Jest's mock functions to simulate successful behavior for fs.readdir and readUserDataFile.
  • Use the expect function to verify that the function returns the expected data (an array of user data objects) when all user data files are read successfully.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant