Module

x/chai/lib/chai/utils/getMessage.js>getMessage

BDD / TDD assertion framework for node.js and the browser that can be paired with any testing framework.
Latest
function getMessage
import { getMessage } from "https://dotland.deno.dev/x/chai@v5.1.2/lib/chai/utils/getMessage.js";

.getMessage(object, message, negateMessage)

Construct the error message based on flags and template tags. Template tags will return a stringified inspection of the object referenced.

Message template tags:

  • #{this} current asserted object
  • #{act} actual value
  • #{exp} expected value

Parameters

obj

object (constructed Assertion)

args

chai.Assertion.prototype.assert arguments