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

Testing functions #11

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Testing functions #11

wants to merge 4 commits into from

Conversation

Olamarx
Copy link
Owner

@Olamarx Olamarx commented Jun 8, 2022

  • Added the delete test function
  • Added the add test function
  • Explored the mock style

Copy link

@zieeco zieeco left a comment

Choose a reason for hiding this comment

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

status: APPROVED 🟢 💯

Hi, @Olamarx and @Zeraltz

68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f78543078657a514755357843444a754350652f67697068792e676966

Good job so far 👍 Your project is complete! There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉

Highlights ⚡

✅ Descriptive PR 👍
✅ Nice design 🔥
✅ Linters are passing 👏
✅ Tests are passing 👏

Optional suggestions

Check the comment under the reviews

Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.

Cheers and Happy coding!👏👏👏

Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.


As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

Comment on lines +23 to +33
let library;
if (!library) {
library = [];
} else {
library = JSON.parse(localStorage.getItem('library'));
}
const content = {
completed: false,
task: 'words',
index: 1,
};
Copy link

@zieeco zieeco Jun 8, 2022

Choose a reason for hiding this comment

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

[OPTIONAL]

  • Great job with the test. I think your codebase isn't dry and you're repeating yourself, since you're using the same content and pushing it into the array, you could actually move these blocks of code immediately after the describe block so you could re-use them in each test...

Comment on lines +4 to +14
let library;
if (!library) {
library = [];
} else {
library = JSON.parse(localStorage.getItem('library'));
}
const content = {
completed: false,
task: 'kvnodfl',
index: 1,
};
Copy link

@zieeco zieeco Jun 8, 2022

Choose a reason for hiding this comment

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

  • As mentioned above, the same thing is applicable here.

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.

3 participants