mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Fix wrong variable name in requiremock's getDefine
The getDefine method check's for existence of the 'arg' variable, which was renamed to 'name', causing the typeof arg === "undefined" to always return true refs #4308
This commit is contained in:
parent
d2cd52218a
commit
21e4ec1727
@ -115,7 +115,7 @@ module.exports = {
|
||||
purgeDependencies: purgeDependencies,
|
||||
registerDependencies: registerDependencies,
|
||||
getDefine: function(name) {
|
||||
if (typeof arg === "undefined") {
|
||||
if (typeof name === "undefined") {
|
||||
return registeredDependencies.__define__;
|
||||
} else {
|
||||
return registeredDependencies[name];
|
||||
|
Loading…
x
Reference in New Issue
Block a user