I am using angularjs 1.4.3. And I have a curiosity because I don't understand a piece of code of the code generated by Jasmine Spec Runner.
When we generate it, Jasmine (via ChutzPath) create this code:
(function () {
var amdTestPaths = [];
if (window.require && typeof window.require === "function" && amdTestPaths.length > 0) {
if (window.chutzpah) {
window.chutzpah.usingModuleLoader = true;
}
if("") {
require.config({
baseUrl: ""
});
}
require.config({
map: {'*': { } }
});
window.require(amdTestPaths, function () {
console.log("!!_!! Stating Jasmine from AMD callback...");
window.initializeJasmine();
});
} else {
var currentWindowOnload = window.onload;
window.onload = function() {
if (currentWindowOnload) {
currentWindowOnload();
}
window.initializeJasmine();
};
}
})();
what is it if("")? I know that's stupid question but I don't ubderstand
maybe is like if (true) or if (1)?