我正在尝试为使用流API的某些功能编写一些单元测试。我想使用Sinon之类的东西来流API:
sinon.stub(stream.feed, 'get');
除了在测试环境中进行连接时stream.connect()
会引发错误之外,这将起作用。
You are publicly sharing your App Secret. Do not expose the App Secret in browsers, "native" mobile apps, or other non-trusted environments.
让我感到困惑的是,这仍然是客户端代码,我没有将我的App Secret密钥公开给任何浏览器...可以通过任何方式解决此问题?