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

Use Chai for test cases #347

Closed
wants to merge 10 commits into from
Closed

Use Chai for test cases #347

wants to merge 10 commits into from

Conversation

A-312
Copy link
Contributor

@A-312 A-312 commented Dec 21, 2019

Now we can see "expected" and "actual" diff.

fix: #346 : Some test don't provide error message

  • Tests are more accurate/fix.

fix: #345 : Replace should (=> Last publish 3 years ago) by Chai

  • For test/cases/*.js (is faster) see : before / after
  • For test/{name}-test.js

Before (with must) :

image

After (with Chai) :

image

Choice I made :

I choose chai.expect instead chai.should because sometime should have a weird bug or doesn't work on undefined and make an error.

@A-312

This comment has been minimized.

@A-312 A-312 marked this pull request as ready for review December 21, 2019 20:10
@coveralls
Copy link

coveralls commented Dec 21, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling 765b554 on A-312:strict-tests into 30bcc2e on mozilla:feat-multi-packages-split.

@A-312
Copy link
Contributor Author

A-312 commented Dec 22, 2019

This PR is ready

@A-312 A-312 mentioned this pull request Dec 22, 2019
7 tasks
with current NPM registry state
@A-312 A-312 mentioned this pull request Dec 28, 2019
@A-312 A-312 changed the base branch from master to feat-multi-packages-split January 1, 2020 09:50
@A-312
Copy link
Contributor Author

A-312 commented Jan 1, 2020

this PR is ready :D

@A-312 A-312 mentioned this pull request Jan 5, 2020
14 tasks
@A-312 A-312 closed this Mar 6, 2020
@A-312 A-312 deleted the strict-tests branch March 6, 2020 18:44
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