Skip to main content

Module assert

Module assert 

Source
Expand description

node:assert.

Written here rather than vendored: upstream llrt_assert is a single ok. Structural comparisons run through deep_equal, the same function util.isDeepStrictEqual uses, and failure messages render through the one Inspector.

Constants§

ASSERT_MEMBERS
The names assert_object sets, for a module’s export list.

Functions§

assert_object
The assert module object: a callable that is assert.ok, carrying every assertion as a property, plus assert.strict.