Skip to content

Use Chai for test cases#347

Closed
A-312 wants to merge 10 commits intomozilla:feat-multi-packages-splitfrom
A-312:strict-tests
Closed

Use Chai for test cases#347
A-312 wants to merge 10 commits intomozilla:feat-multi-packages-splitfrom
A-312:strict-tests

Conversation

@A-312
Copy link
Copy Markdown
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
Copy link
Copy Markdown
Contributor Author

A-312 commented Dec 21, 2019

@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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
@madarche madarche force-pushed the feat-multi-packages-split branch from 7064166 to 051dd99 Compare March 6, 2020 17:48
@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