(function () { "use strict"; // Module systems magic dance. if (typeof require === "function" && typeof exports === "object" && typeof module === "object") { // NodeJS module.exports = chaiAsPromised; } else if (typeof define === "function" && define.amd) { // AMD define([],function () { return chaiAsPromised; }); } else { /*global self: false */ // Other environment (usually