summaryrefslogtreecommitdiff
path: root/async/features/support/hooks.js
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2025-07-16 16:39:09 +0200
committerEugen Wissner <belka@caraus.de>2025-07-16 16:39:09 +0200
commitdecd8e9e3d98d79b33c56e1c1a53e11fb5047c4a (patch)
tree70e4c86900f0a2363036d47f440e3269ecff02fb /async/features/support/hooks.js
parentef41c7d7884fa4fae8b6eba53d8fab0f584a97cf (diff)
downloadcucumber-js-demo-decd8e9e3d98d79b33c56e1c1a53e11fb5047c4a.tar.gz
Use node assertions as standard solution
Diffstat (limited to 'async/features/support/hooks.js')
-rw-r--r--async/features/support/hooks.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/async/features/support/hooks.js b/async/features/support/hooks.js
index 00ac749..de7c41a 100644
--- a/async/features/support/hooks.js
+++ b/async/features/support/hooks.js
@@ -1,16 +1,13 @@
import { BeforeAll, AfterAll } from '@cucumber/cucumber'
-import express from 'express'
+import { createServer } from 'node:http'
let server
BeforeAll(function () {
- const app = express()
-
- app.get('/', (req, res) => {
- res.send('Alea iacta est')
+ server = createServer(function (request, response) {
+ response.end('Alea iacta est')
})
-
- server = app.listen(8080)
+ server.listen(8080)
})
AfterAll(function () {