Sha256: 2bcb84f277cfd7d61c8c736d272f18b46b31150b40e7ebcb0703da6def2a3860

Contents?: true

Size: 1.02 KB

Versions: 22

Compression:

Stored size: 1.02 KB

Contents

(function() {
  var path = require("path"),
    fs = require("fs");

  var glob = require("glob");

  var jasmineUnderTestRequire = require(path.join(__dirname, "../../src/core/requireCore.js"));

  global.getJasmineRequireObj = function () {
    return jasmineUnderTestRequire;
  };

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

  function getSourceFiles() {
    var src_files = ['core/**/*.js', 'console/**/*.js', 'version.js'];
    src_files.forEach(function(file) {
      var filePath = path.join(__dirname, "../../", 'src/', file);
      glob.sync(filePath).forEach(function(resolvedFile) {
        require(resolvedFile);
      });
    });
  }

  extend(jasmineUnderTestRequire, require(path.join(__dirname,"../../src/console/requireConsole.js")));
  getSourceFiles();
  global.jasmineUnderTest = jasmineUnderTestRequire.core(jasmineUnderTestRequire);

  jasmineUnderTestRequire.console(jasmineUnderTestRequire, jasmineUnderTest);
})();

Version data entries

22 entries across 19 versions & 2 rubygems

Version Path
jasmine-core-2.5.1 ./lib/jasmine-core/spec/helpers/nodeDefineJasmineUnderTest.js
jasmine-core-2.5.0 ./lib/jasmine-core/spec/helpers/nodeDefineJasmineUnderTest.js