code: function (plugin) {
      /* global module:false, define:false */
  
      if (typeof require === "function" &&
          typeof exports === "object" &&
          typeof module === "object") {
        // NodeJS
        module.exports = plugin;
  
      } else if (typeof define === "function" && define.amd) {
        // AMD: Assumes importing `chai` and `jquery`. Returns a function to
        //      inject with `chai.use()`.
        //
        // See: https://github.com/chaijs/chai-jquery/issues/27
        define(["jquery"], function ($) {
          return function (chai, utils) {
            return plugin(chai, utils, $);
          };
        });
  
      } else {
        // Other environment (usually <script> tag): plug in to global chai
        // instance directly.
        root.chai.use(function (chai, utils) {
          return plugin(chai, utils, root.jQuery);
        });
      }
    }
docs: /* istanbul ignore next /*!
  Wrap AMD, etc. using boilerplate.