Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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

.getOperator(message)

Extract the operator from error message. Operator defined is based on below link https://nodejs.org/api/assert.html#assert_assert.

Returns the operator or undefined value for an Assertion.

Parameters

obj

object (constructed Assertion)

args

chai.Assertion.prototype.assert arguments