mozilla / node-convict

Featureful configuration management library for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace should (=> Last publish 3 years ago) by Chai

A-312 opened this issue · comments

commented

must doesn't provide actual + expected when a throw test failed (if the error message is different of the expected message). :(

Before (with must) :

image

After (with Chai) :

image

commented

For cases :

Actual :

We don't have expected/actual :

image

After :

image

Error prototype should be :

{
  message: '...',
  showDiff: true,
  actual: { },
  expected: { }
}