How to use the jasmine-core.console function in jasmine-core

To help you get started, we’ve selected a few jasmine-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bcaudan / jasmine-spec-reporter / spec / helpers / nodeDefineJasmineUnderTests.js View on Github external
jasmineConsole = require('../../node_modules/jasmine-core/lib/console/console.js');

  global.getJasmineRequireObj = function () {
    return j$Require;
  };

  function extend(destination, source) {
    for (var property in source) destination[property] = source[property];
    return destination;
  }

  extend(j$Require, jasmineConsole);

  global.j$ = j$Require.core(j$Require);

  j$Require.console(j$Require, j$);
})();