问题标签 [vows]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
node.js - server.close() 在 Vow 拆解中不起作用
我正在尝试为我的普通 Express 应用程序编写一些基于 Vows 的测试。
这是测试源:
这是start-app.js
:
app.js
导出一个常规的 Express.js 应用程序,使用express()
.
问题是,每当我运行测试时,topic.close()
在拆卸功能中不起作用,并且测试在成功后永远挂起。我试过在网上搜索并添加很多很多console.log
s,但都无济于事。
我在 Node.js 4.2.0 的 Windows x64 版本上,我正在使用assert@1.3.0
和vows@0.8.1
.
知道如何让我的测试停止挂起吗?