(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); })();