0.0.2 • Published 6 years ago

assert-strict v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

node assert is deprecated in favour of assert.strict, but commonjs-assert doesn't support strict mode. Get the strictest assert possible today!

instead of:

import assertModule from 'assert';

const assert = assertModule.strict || assertModule;

in every test just do this:

npm install --save-dev 'assert-strict'
import assert from 'assert-strict';

The contents of this module are as follows:

module.exports=function(a){return a.strict||a}(require('assert'));