标签: mocha sinon slack-api
我正在尝试对Slack的API调用进行存根。如何在下面的代码中将lookupByEmail函数与Sinon相乘?
lookupByEmail
const {WebClient} = require("@slack/client"); const client = new WebClient() const user = await client.users.lookupByEmail( {email: 'my-email', token: 'my-token' });