Skip to content

Conversation

@alex-aaron
Copy link

@alex-aaron alex-aaron commented May 28, 2025

Summary of Changes

Updated tests to account for callback function inputs

I updated the tests for any _ method that prompts students to pass in additional arguments when callback functions are invoked. For instance, if the instructions prompt students to invoke the callback with the current element, current index, and the array itself or the current value, the current key, and the object itself, I created additional tests to check that the callbacks were receiving that data.

Additional Changes

  • I updated all occurrences of var to let & const
  • I updated all functions to arrow functions
  • I changed certain test cases to make the tests more coherent for students.
  • I added .prettierrc to root directory

alex-aaron added 30 commits May 11, 2025 14:52
… to const, updated spec/underpants.spec.js to reflect additional edge cases
…od instead of _.every... corrected test string to be more specific
… test to use _.each and removed unnecessary console.log statements
…d map test to pluck tests for spec and test directories
@alex-aaron alex-aaron requested a review from ptbarnum4 May 28, 2025 19:43
@alex-aaron alex-aaron self-assigned this May 28, 2025
@alex-aaron alex-aaron marked this pull request as draft May 28, 2025 19:43
@alex-aaron alex-aaron marked this pull request as ready for review May 28, 2025 19:44
@alex-aaron alex-aaron linked an issue Jun 4, 2025 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

Update Tests

2 participants