Assert polyfill
Installation
npm install assert-polyfill --save
Why?
NodeJS v0 deepStrictEqual
/notDeepStrictEqual
is unavailable.
var assert = ;assert// TypeError: undefined is not a function assert// TypeError: undefined is not a function
if above function is undefined
, assert-polyfill
defines the polyfill functions.
;var assert = ;assert // passassert // pass
even if --require
in mocha, it is similar.
mocha --require assert-polyfill
Development
Requirement global
- NodeJS v0.12.13
- Npm v2.15.0
git clone https://github.com/59naga/assert-polyfillcd assert-polyfillnpm install npm test