using sinon to mock a line in a function

后端 未结 0 1492
旧时难觅i
旧时难觅i 2021-01-22 09:42

I have a function as follows

export const encrypt = (recordJSONy, logger) => {
const key =  config.encryption.key
if(!key || key == ""){
 throw encry         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题