spec/util-spec.js
function(pluginOptions, options) {
        options.isFactoryFunctionRun = true;
        return new GrawlixPlugin({
          name: 'blank-plugin-2',
          init: function(opts) {
            opts.isLoaded = true;
          }
        });
      }
function(pluginOptions, options) {
        options.isFactoryFunctionRun = true;
        return new GrawlixPlugin({
          name: 'blank-plugin-2',
          init: function(opts) {
            opts.isLoaded = true;
          }
        });
      }
function ( pluginOptions , options ) { options . isFactoryFunctionRun = true ; return new GrawlixPlugin ( { name : 'blank-plugin-2' , init : function ( opts ) { opts . isLoaded = true ; } } ) ; }
factory function plugin
factory function plugin