w3c / vc-data-model-2.0-test-suite

W3C Verifiable Credentials v2.0 test suite
https://w3c.github.io/vc-data-model-2.0-test-suite/
Other
11 stars 11 forks source link

Use Chai assertions over node assert #4

Open aljones15 opened 1 year ago

aljones15 commented 1 year ago

Currently tests here use node's assertion library.

Tests usually use Chai's should and expect interface. Please do try to use should:

https://www.chaijs.com/guide/styles/#should

the use of assert is clever, but if a chai assertion doesn't throw the mocha reporter might not see it.

So use chai to assert on the error from the server.