sinon mock single function without object

前端 未结 0 912
甜味超标
甜味超标 2021-01-01 03:21

In almost 2021, is there a way to mock a single function? I mean function without object.

// demo.js
module.exports = () => {
  return \'real func demo\';
         


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