Use node assertions as standard solution
This commit is contained in:
@@ -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 () {
|
||||
|
Reference in New Issue
Block a user