80 lines
2.8 KiB
JavaScript
80 lines
2.8 KiB
JavaScript
var getJasmineRequireObj = (function (jasmineGlobal) {
|
|
/* globals exports, global, module, window */
|
|
var jasmineRequire;
|
|
|
|
if (typeof module !== 'undefined' && module.exports && typeof exports !== 'undefined') {
|
|
if (typeof global !== 'undefined') {
|
|
jasmineGlobal = global;
|
|
} else {
|
|
jasmineGlobal = {};
|
|
}
|
|
jasmineRequire = exports;
|
|
} else {
|
|
if (typeof window !== 'undefined' && typeof window.toString === 'function' && window.toString() === '[object GjsGlobal]') {
|
|
jasmineGlobal = window;
|
|
}
|
|
jasmineRequire = jasmineGlobal.jasmineRequire = {};
|
|
}
|
|
|
|
function getJasmineRequire() {
|
|
return jasmineRequire;
|
|
}
|
|
|
|
getJasmineRequire().core = function(jRequire) {
|
|
var j$ = {};
|
|
|
|
jRequire.base(j$, jasmineGlobal);
|
|
j$.util = jRequire.util(j$);
|
|
j$.errors = jRequire.errors();
|
|
j$.formatErrorMsg = jRequire.formatErrorMsg();
|
|
j$.Any = jRequire.Any(j$);
|
|
j$.Anything = jRequire.Anything(j$);
|
|
j$.CallTracker = jRequire.CallTracker(j$);
|
|
j$.MockDate = jRequire.MockDate();
|
|
j$.getClearStack = jRequire.clearStack(j$);
|
|
j$.Clock = jRequire.Clock();
|
|
j$.DelayedFunctionScheduler = jRequire.DelayedFunctionScheduler(j$);
|
|
j$.Env = jRequire.Env(j$);
|
|
j$.StackTrace = jRequire.StackTrace(j$);
|
|
j$.ExceptionFormatter = jRequire.ExceptionFormatter(j$);
|
|
j$.Expectation = jRequire.Expectation();
|
|
j$.AsyncExpectation = jRequire.AsyncExpectation(j$);
|
|
j$.buildExpectationResult = jRequire.buildExpectationResult();
|
|
j$.JsApiReporter = jRequire.JsApiReporter();
|
|
j$.matchersUtil = jRequire.matchersUtil(j$);
|
|
j$.ObjectContaining = jRequire.ObjectContaining(j$);
|
|
j$.ArrayContaining = jRequire.ArrayContaining(j$);
|
|
j$.ArrayWithExactContents = jRequire.ArrayWithExactContents(j$);
|
|
j$.pp = jRequire.pp(j$);
|
|
j$.QueueRunner = jRequire.QueueRunner(j$);
|
|
j$.ReportDispatcher = jRequire.ReportDispatcher(j$);
|
|
j$.Spec = jRequire.Spec(j$);
|
|
j$.Spy = jRequire.Spy(j$);
|
|
j$.SpyFactory = jRequire.SpyFactory(j$);
|
|
j$.SpyRegistry = jRequire.SpyRegistry(j$);
|
|
j$.SpyStrategy = jRequire.SpyStrategy(j$);
|
|
j$.StringMatching = jRequire.StringMatching(j$);
|
|
j$.UserContext = jRequire.UserContext(j$);
|
|
j$.Suite = jRequire.Suite(j$);
|
|
j$.Timer = jRequire.Timer();
|
|
j$.TreeProcessor = jRequire.TreeProcessor();
|
|
j$.version = jRequire.version();
|
|
j$.Order = jRequire.Order();
|
|
j$.DiffBuilder = jRequire.DiffBuilder(j$);
|
|
j$.NullDiffBuilder = jRequire.NullDiffBuilder(j$);
|
|
j$.ObjectPath = jRequire.ObjectPath(j$);
|
|
j$.GlobalErrors = jRequire.GlobalErrors(j$);
|
|
|
|
j$.Truthy = jRequire.Truthy(j$);
|
|
j$.Falsy = jRequire.Falsy(j$);
|
|
j$.Empty = jRequire.Empty(j$);
|
|
j$.NotEmpty = jRequire.NotEmpty(j$);
|
|
|
|
j$.matchers = jRequire.requireMatchers(jRequire, j$);
|
|
|
|
return j$;
|
|
};
|
|
|
|
return getJasmineRequire;
|
|
})(this);
|