mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-09-25 18:41:07 -04:00
Remove babel-plugin-rewire (#3522)
This commit is contained in:
parent
f4967615c0
commit
d231a05526
5 changed files with 19 additions and 21 deletions
|
@ -1047,3 +1047,13 @@ module.exports.grpcQuery = async (options) => {
|
|||
|
||||
});
|
||||
};
|
||||
|
||||
// For unit test, export functions
|
||||
if (process.env.TEST_BACKEND) {
|
||||
module.exports.__test = {
|
||||
parseCertificateInfo,
|
||||
};
|
||||
module.exports.__getPrivateFunction = (functionName) => {
|
||||
return module.exports.__test[functionName];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue