Skip to content

Enhancing Tests.js logic #76

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

Merged
merged 1 commit into from
Oct 23, 2022
Merged

Conversation

hot9cups
Copy link
Collaborator

@hot9cups hot9cups commented Oct 23, 2022

  • Solves Modifying Tests.js to handle multiple test exports #68
  • Modified Tests.js to get rid of hardcoding and work for files having variable number of test methods. Now any number of tests can be exported and can also be named anything(As opposed to being 'test' from earlier).
  • Modified 2Sum_Test.js to demonstrate an example.
    (Note, I manually tested and ensured both the test methods inside 2Sum_Test.js were actually being invoked, since we had a bug earlier where we were exporting all functions but only test() was being invoked)

- Modified Tests.js to get rid of hardcoding and work for files having variable number of test methods. Now any number of tests can be exported and can also be named anything(As opposed to being 'test' from earlier)
Copy link
Owner

@ignacio-chiazzo ignacio-chiazzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

I tested manually too and Object.keys(tests) did the trick!

Thanks

@ignacio-chiazzo ignacio-chiazzo merged commit a3d646a into ignacio-chiazzo:master Oct 23, 2022
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.

2 participants