Commit 6360e70f9c420261c04295d55bd6181e31a333fb
Closes server when test complete
Piet Geursen committed on 4/11/2018, 2:44:12 AMParent: b792992e79b3b28771b347e53432ec76daa47ee5
Files changed
test/position/async/buildChooseOne.test.js | changed |
test/position/async/buildChooseOne.test.js | ||
---|---|---|
@@ -8,8 +8,10 @@ | ||
8 | 8 | |
9 | 9 | const publishChooseOne = require('../../../poll/async/publishChooseOne')(server) |
10 | 10 | const ChooseOne = require('../../../position/async/buildChooseOne')(server) |
11 | 11 | |
12 | +test.onFinish(() => server.close()) | |
13 | + | |
12 | 14 | test('position.async.buildChooseOne', function (t) { |
13 | 15 | t.plan(5) |
14 | 16 | |
15 | 17 | const pollOpts = {title: 'are you reading this', choices: ['yes', 'no'], closesAt: new Date().toISOString()} |
Built with git-ssb-web