smartlog-destination-devtools/.cache/49/3f90868ae731d60eb1015f505ad226.json
2018-11-13 01:32:39 +01:00

1 line
28 KiB
JSON

{"id":"node_modules/chai/lib/chai/utils/getMessage.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/package.json","includedInParent":true,"mtime":1542067438335},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/package.json","includedInParent":true,"mtime":1542058764034},{"name":"./flag","loc":{"line":11,"column":19},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/utils/getMessage.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/utils/flag.js"},{"name":"./getActual","loc":{"line":12,"column":24},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/utils/getMessage.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/utils/getActual.js"},{"name":"./objDisplay","loc":{"line":13,"column":25},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/utils/getMessage.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/utils/objDisplay.js"}],"generated":{"js":"/*!\n * Chai - message composition utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n\n/*!\n * Module dependencies\n */\nvar flag = require('./flag'),\n getActual = require('./getActual'),\n objDisplay = require('./objDisplay');\n/**\n * ### .getMessage(object, message, negateMessage)\n *\n * Construct the error message based on flags\n * and template tags. Template tags will return\n * a stringified inspection of the object referenced.\n *\n * Message template tags:\n * - `#{this}` current asserted object\n * - `#{act}` actual value\n * - `#{exp}` expected value\n *\n * @param {Object} object (constructed Assertion)\n * @param {Arguments} chai.Assertion.prototype.assert arguments\n * @namespace Utils\n * @name getMessage\n * @api public\n */\n\n\nmodule.exports = function getMessage(obj, args) {\n var negate = flag(obj, 'negate'),\n val = flag(obj, 'object'),\n expected = args[3],\n actual = getActual(obj, args),\n msg = negate ? args[2] : args[1],\n flagMsg = flag(obj, 'message');\n if (typeof msg === \"function\") msg = msg();\n msg = msg || '';\n msg = msg.replace(/#\\{this\\}/g, function () {\n return objDisplay(val);\n }).replace(/#\\{act\\}/g, function () {\n return objDisplay(actual);\n }).replace(/#\\{exp\\}/g, function () {\n return objDisplay(expected);\n });\n return flagMsg ? flagMsg + ': ' + msg : msg;\n};","map":{"mappings":[{"generated":{"line":1,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":1,"column":0}},{"generated":{"line":7,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":7,"column":0}},{"generated":{"line":10,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":11,"column":0}},{"name":"flag","generated":{"line":10,"column":4},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":11,"column":4}},{"generated":{"line":10,"column":8},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":11,"column":8}},{"name":"require","generated":{"line":10,"column":11},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":11,"column":11}},{"generated":{"line":10,"column":18},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":11,"column":18}},{"generated":{"line":10,"column":19},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":11,"column":19}},{"generated":{"line":10,"column":27},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":11,"column":18}},{"generated":{"line":10,"column":28},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":11,"column":0}},{"generated":{"line":11,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":11,"column":0}},{"name":"getActual","generated":{"line":11,"column":4},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":12,"column":4}},{"generated":{"line":11,"column":13},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":12,"column":13}},{"name":"require","generated":{"line":11,"column":16},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":12,"column":16}},{"generated":{"line":11,"column":23},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":12,"column":23}},{"generated":{"line":11,"column":24},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":12,"column":24}},{"generated":{"line":11,"column":37},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":12,"column":23}},{"generated":{"line":11,"column":38},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":11,"column":0}},{"generated":{"line":12,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":11,"column":0}},{"name":"objDisplay","generated":{"line":12,"column":4},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":13,"column":4}},{"generated":{"line":12,"column":14},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":13,"column":14}},{"name":"require","generated":{"line":12,"column":17},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":13,"column":17}},{"generated":{"line":12,"column":24},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":13,"column":24}},{"generated":{"line":12,"column":25},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":13,"column":25}},{"generated":{"line":12,"column":39},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":13,"column":24}},{"generated":{"line":12,"column":40},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":11,"column":0}},{"generated":{"line":13,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":15,"column":0}},{"name":"module","generated":{"line":33,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":34,"column":0}},{"generated":{"line":33,"column":6},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":34,"column":6}},{"name":"exports","generated":{"line":33,"column":7},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":34,"column":7}},{"generated":{"line":33,"column":14},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":34,"column":0}},{"generated":{"line":33,"column":17},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":34,"column":17}},{"name":"getMessage","generated":{"line":33,"column":26},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":34,"column":26}},{"generated":{"line":33,"column":36},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":34,"column":17}},{"name":"obj","generated":{"line":33,"column":37},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":34,"column":37}},{"generated":{"line":33,"column":40},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":34,"column":17}},{"name":"args","generated":{"line":33,"column":42},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":34,"column":42}},{"generated":{"line":33,"column":46},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":34,"column":17}},{"generated":{"line":33,"column":48},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":34,"column":48}},{"generated":{"line":34,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":35,"column":2}},{"name":"negate","generated":{"line":34,"column":6},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":35,"column":6}},{"generated":{"line":34,"column":12},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":35,"column":12}},{"name":"flag","generated":{"line":34,"column":15},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":35,"column":15}},{"generated":{"line":34,"column":19},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":35,"column":19}},{"name":"obj","generated":{"line":34,"column":20},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":35,"column":20}},{"generated":{"line":34,"column":23},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":35,"column":19}},{"generated":{"line":34,"column":25},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":35,"column":25}},{"generated":{"line":34,"column":33},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":35,"column":19}},{"generated":{"line":34,"column":34},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":35,"column":2}},{"generated":{"line":35,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":35,"column":2}},{"name":"val","generated":{"line":35,"column":6},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":36,"column":6}},{"generated":{"line":35,"column":9},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":36,"column":9}},{"name":"flag","generated":{"line":35,"column":12},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":36,"column":12}},{"generated":{"line":35,"column":16},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":36,"column":16}},{"name":"obj","generated":{"line":35,"column":17},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":36,"column":17}},{"generated":{"line":35,"column":20},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":36,"column":16}},{"generated":{"line":35,"column":22},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":36,"column":22}},{"generated":{"line":35,"column":30},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":36,"column":16}},{"generated":{"line":35,"column":31},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":35,"column":2}},{"generated":{"line":36,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":35,"column":2}},{"name":"expected","generated":{"line":36,"column":6},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":37,"column":6}},{"generated":{"line":36,"column":14},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":37,"column":14}},{"name":"args","generated":{"line":36,"column":17},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":37,"column":17}},{"generated":{"line":36,"column":21},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":37,"column":21}},{"generated":{"line":36,"column":22},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":37,"column":22}},{"generated":{"line":36,"column":23},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":37,"column":21}},{"generated":{"line":36,"column":24},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":35,"column":2}},{"generated":{"line":37,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":35,"column":2}},{"name":"actual","generated":{"line":37,"column":6},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":38,"column":6}},{"generated":{"line":37,"column":12},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":38,"column":12}},{"name":"getActual","generated":{"line":37,"column":15},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":38,"column":15}},{"generated":{"line":37,"column":24},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":38,"column":24}},{"name":"obj","generated":{"line":37,"column":25},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":38,"column":25}},{"generated":{"line":37,"column":28},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":38,"column":24}},{"name":"args","generated":{"line":37,"column":30},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":38,"column":30}},{"generated":{"line":37,"column":34},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":38,"column":24}},{"generated":{"line":37,"column":35},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":35,"column":2}},{"generated":{"line":38,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":35,"column":2}},{"name":"msg","generated":{"line":38,"column":6},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":39,"column":6}},{"generated":{"line":38,"column":9},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":39,"column":9}},{"name":"negate","generated":{"line":38,"column":12},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":39,"column":12}},{"generated":{"line":38,"column":18},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":39,"column":18}},{"name":"args","generated":{"line":38,"column":21},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":39,"column":21}},{"generated":{"line":38,"column":25},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":39,"column":25}},{"generated":{"line":38,"column":26},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":39,"column":26}},{"generated":{"line":38,"column":27},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":39,"column":25}},{"generated":{"line":38,"column":28},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":39,"column":18}},{"name":"args","generated":{"line":38,"column":31},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":39,"column":31}},{"generated":{"line":38,"column":35},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":39,"column":35}},{"generated":{"line":38,"column":36},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":39,"column":36}},{"generated":{"line":38,"column":37},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":39,"column":35}},{"generated":{"line":38,"column":38},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":35,"column":2}},{"generated":{"line":39,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":35,"column":2}},{"name":"flagMsg","generated":{"line":39,"column":6},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":40,"column":6}},{"generated":{"line":39,"column":13},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":40,"column":13}},{"name":"flag","generated":{"line":39,"column":16},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":40,"column":16}},{"generated":{"line":39,"column":20},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":40,"column":20}},{"name":"obj","generated":{"line":39,"column":21},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":40,"column":21}},{"generated":{"line":39,"column":24},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":40,"column":20}},{"generated":{"line":39,"column":26},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":40,"column":26}},{"generated":{"line":39,"column":35},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":40,"column":20}},{"generated":{"line":39,"column":36},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":35,"column":2}},{"generated":{"line":40,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":42,"column":2}},{"generated":{"line":40,"column":6},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":42,"column":5}},{"name":"msg","generated":{"line":40,"column":13},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":42,"column":12}},{"generated":{"line":40,"column":16},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":42,"column":5}},{"generated":{"line":40,"column":21},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":42,"column":20}},{"generated":{"line":40,"column":31},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":42,"column":2}},{"name":"msg","generated":{"line":40,"column":33},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":42,"column":32}},{"generated":{"line":40,"column":36},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":42,"column":35}},{"name":"msg","generated":{"line":40,"column":39},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":42,"column":38}},{"generated":{"line":40,"column":42},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":42,"column":41}},{"generated":{"line":40,"column":44},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":42,"column":32}},{"name":"msg","generated":{"line":41,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":43,"column":2}},{"name":"msg","generated":{"line":41,"column":2},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":43,"column":2}},{"generated":{"line":41,"column":5},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":43,"column":5}},{"name":"msg","generated":{"line":41,"column":8},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":43,"column":8}},{"generated":{"line":41,"column":11},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":43,"column":11}},{"generated":{"line":41,"column":15},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":43,"column":15}},{"generated":{"line":41,"column":17},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":43,"column":2}},{"name":"msg","generated":{"line":42,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":44,"column":2}},{"name":"msg","generated":{"line":42,"column":2},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":44,"column":2}},{"generated":{"line":42,"column":5},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":44,"column":5}},{"name":"msg","generated":{"line":42,"column":8},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":44,"column":8}},{"generated":{"line":42,"column":11},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":44,"column":11}},{"name":"replace","generated":{"line":42,"column":12},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":45,"column":5}},{"generated":{"line":42,"column":19},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":44,"column":8}},{"generated":{"line":42,"column":20},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":45,"column":13}},{"generated":{"line":42,"column":32},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":44,"column":8}},{"generated":{"line":42,"column":34},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":45,"column":27}},{"generated":{"line":42,"column":46},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":45,"column":39}},{"generated":{"line":43,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":45,"column":41}},{"name":"objDisplay","generated":{"line":43,"column":11},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":45,"column":48}},{"generated":{"line":43,"column":21},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":45,"column":58}},{"name":"val","generated":{"line":43,"column":22},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":45,"column":59}},{"generated":{"line":43,"column":25},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":45,"column":58}},{"generated":{"line":43,"column":26},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":45,"column":41}},{"generated":{"line":44,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":45,"column":66}},{"generated":{"line":44,"column":3},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":44,"column":8}},{"name":"replace","generated":{"line":44,"column":5},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":46,"column":5}},{"generated":{"line":44,"column":12},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":44,"column":8}},{"generated":{"line":44,"column":13},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":46,"column":13}},{"generated":{"line":44,"column":24},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":44,"column":8}},{"generated":{"line":44,"column":26},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":46,"column":26}},{"generated":{"line":44,"column":38},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":46,"column":38}},{"generated":{"line":45,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":46,"column":40}},{"name":"objDisplay","generated":{"line":45,"column":11},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":46,"column":47}},{"generated":{"line":45,"column":21},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":46,"column":57}},{"name":"actual","generated":{"line":45,"column":22},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":46,"column":58}},{"generated":{"line":45,"column":28},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":46,"column":57}},{"generated":{"line":45,"column":29},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":46,"column":40}},{"generated":{"line":46,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":46,"column":68}},{"generated":{"line":46,"column":3},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":44,"column":8}},{"name":"replace","generated":{"line":46,"column":5},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":47,"column":5}},{"generated":{"line":46,"column":12},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":44,"column":8}},{"generated":{"line":46,"column":13},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":47,"column":13}},{"generated":{"line":46,"column":24},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":44,"column":8}},{"generated":{"line":46,"column":26},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":47,"column":26}},{"generated":{"line":46,"column":38},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":47,"column":38}},{"generated":{"line":47,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":47,"column":40}},{"name":"objDisplay","generated":{"line":47,"column":11},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":47,"column":47}},{"generated":{"line":47,"column":21},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":47,"column":57}},{"name":"expected","generated":{"line":47,"column":22},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":47,"column":58}},{"generated":{"line":47,"column":30},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":47,"column":57}},{"generated":{"line":47,"column":31},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":47,"column":40}},{"generated":{"line":48,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":47,"column":70}},{"generated":{"line":48,"column":3},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":44,"column":8}},{"generated":{"line":48,"column":4},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":44,"column":2}},{"generated":{"line":49,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":49,"column":2}},{"name":"flagMsg","generated":{"line":49,"column":9},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":49,"column":9}},{"generated":{"line":49,"column":16},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":49,"column":16}},{"name":"flagMsg","generated":{"line":49,"column":19},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":49,"column":19}},{"generated":{"line":49,"column":26},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":49,"column":26}},{"generated":{"line":49,"column":29},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":49,"column":29}},{"generated":{"line":49,"column":33},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":49,"column":19}},{"name":"msg","generated":{"line":49,"column":36},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":49,"column":36}},{"generated":{"line":49,"column":39},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":49,"column":16}},{"name":"msg","generated":{"line":49,"column":42},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":49,"column":42}},{"generated":{"line":49,"column":45},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":49,"column":2}},{"generated":{"line":50,"column":0},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":50,"column":1}},{"generated":{"line":50,"column":1},"source":"node_modules/chai/lib/chai/utils/getMessage.js","original":{"line":34,"column":0}}],"sources":{"node_modules/chai/lib/chai/utils/getMessage.js":"/*!\n * Chai - message composition utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n\n/*!\n * Module dependencies\n */\n\nvar flag = require('./flag')\n , getActual = require('./getActual')\n , objDisplay = require('./objDisplay');\n\n/**\n * ### .getMessage(object, message, negateMessage)\n *\n * Construct the error message based on flags\n * and template tags. Template tags will return\n * a stringified inspection of the object referenced.\n *\n * Message template tags:\n * - `#{this}` current asserted object\n * - `#{act}` actual value\n * - `#{exp}` expected value\n *\n * @param {Object} object (constructed Assertion)\n * @param {Arguments} chai.Assertion.prototype.assert arguments\n * @namespace Utils\n * @name getMessage\n * @api public\n */\n\nmodule.exports = function getMessage(obj, args) {\n var negate = flag(obj, 'negate')\n , val = flag(obj, 'object')\n , expected = args[3]\n , actual = getActual(obj, args)\n , msg = negate ? args[2] : args[1]\n , flagMsg = flag(obj, 'message');\n\n if(typeof msg === \"function\") msg = msg();\n msg = msg || '';\n msg = msg\n .replace(/#\\{this\\}/g, function () { return objDisplay(val); })\n .replace(/#\\{act\\}/g, function () { return objDisplay(actual); })\n .replace(/#\\{exp\\}/g, function () { return objDisplay(expected); });\n\n return flagMsg ? flagMsg + ': ' + msg : msg;\n};\n"},"lineCount":null}},"hash":"f2eb6ed25b943de64369332efde8126d","cacheData":{"env":{}}}