all files / core/errors/ function-call-match-error.js

100% Statements 15/15
81.82% Branches 9/11
100% Functions 5/5
100% Lines 11/11
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16    44×      
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) Eif (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var _namespace_1 = require("./_namespace");
var FunctionCallMatchError = (function (_super) {
    __extends(FunctionCallMatchError, _super);
    function FunctionCallMatchError(actualValue, shouldMatch, args) {
        _super.call(this, actualValue, "function to be called", "Expected function " + (!shouldMatch ? "not " : "") + "to be called" + (args ? " with [" + args.map(function (arg) { return JSON.stringify(arg); }).join(", ") + "]" : "") + ".");
    }
    return FunctionCallMatchError;
}(_namespace_1.MatchError));
exports.FunctionCallMatchError = FunctionCallMatchError;
//# sourceMappingURL=function-call-match-error.js.map