sinon spy.threw 详解:检测 spy / fake / stub 是否抛出了异常
测试开发工具 【免费下载链接】sinon Test spies, stubs and mocks for JavaScript. 项目地址: https://gitcode.com/gh_mirrors/si/sinon 点击查看 免费下载 spy.threw 是 Sinon 中用于判断被观测函数(fake、spy 或 stub)在历史调用中是否至…
2026/9/25 16:02:37