UNPKG

alsatian-fluent-assertions

Version:

Fluent assertions extension to Alsatian xUnit framework.

25 lines 1.18 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const simple_matcher_1 = require("./simple-matcher"); class SimpleMatcherWithHelpers extends simple_matcher_1.SimpleMatcher { constructor(actualValue, nextValue, initial, prevCore, ctxt) { super(actualValue, nextValue, initial, prevCore, ctxt); } equals(expected, eqType = "strictly" /* strictly */) { this.setCurrentNode(this.equals.name, typeof expected + ", " + eqType); switch (eqType) { case "strictly" /* strictly */: return this.strictlyEquals(expected); case "loosely" /* loosely */: return this.looselyEquals(expected); case "deepLoosely" /* deepLoosely */: return this.deepLooselyEquals(expected); case "deepStrictly" /* deepStrictly */: return this.deepStrictlyEquals(expected); default: this.specError(`Unrecognized EqType: ${eqType}.`, undefined, undefined); } } } exports.SimpleMatcherWithHelpers = SimpleMatcherWithHelpers; //# sourceMappingURL=simple-matcher-with-helpers.js.map