mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-20 06:01:12 -06:00
11 lines
242 B
CoffeeScript
11 lines
242 B
CoffeeScript
Promise = require("bluebird")
|
|
allowDestroy = require("server-destroy")
|
|
|
|
module.exports = (server) ->
|
|
allowDestroy(server)
|
|
|
|
server.destroyAsync = ->
|
|
Promise.promisify(server.destroy)()
|
|
.catch ->
|
|
## dont catch any errors
|