mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
assert: add assert.Snapshot
PR-URL: https://github.com/nodejs/node/pull/44095 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
This commit is contained in:
parent
818bd6cb4d
commit
8f9d1ab5ec
20 changed files with 380 additions and 0 deletions
|
@ -1052,6 +1052,9 @@ assert.doesNotMatch = function doesNotMatch(string, regexp, message) {
|
|||
|
||||
assert.CallTracker = CallTracker;
|
||||
|
||||
const snapshot = require('internal/assert/snapshot');
|
||||
assert.snapshot = snapshot;
|
||||
|
||||
/**
|
||||
* Expose a strict only variant of assert.
|
||||
* @param {...any} args
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue