import { transferFlags } from "https://dotland.deno.dev/x/chai@v5.1.2/lib/chai/utils/transferFlags.js";
.transferFlags(assertion, object, includeAll = true)
Transfer all the flags for assertion
to object
. If
includeAll
is set to false
, then the base Chai
assertion flags (namely object
, ssfi
, lockSsfi
,
and message
) will not be transferred.
var newAssertion = new Assertion();
utils.transferFlags(assertion, newAssertion);
var anotherAssertion = new Assertion(myObj);
utils.transferFlags(assertion, anotherAssertion, false);