mockingoose is not a function - passing Mocked Mongoose Model to function through constructor function

后端 未结 0 1095
你的背包
你的背包 2021-02-04 17:23

I have a javascript logger function that depends on a mongoose model:

  function Logger(model) {
    var Model = model;

    Logger.prototype.logError = async fun         


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