GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing masteringjs.io — Working with the Node.js assert Library
☰
Working with the Node.js assert Library
Sep 7, 2022
Node.js'
strictEqual()While
deepEqual() && deepStrictEqual()These functions do a deep comparison of objects to make sure they have the same keys and values. Only use these functions with POJOs, this will not work with MongoDB ObjectIds.
throws()Use this function when you want to assert that the function you are testing should throw an error with a specific
rejects()This functions similarly to
Did you find this tutorial useful? Say thanks by starring our repo on GitHub!
More Node Tutorials |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |