add tests for #10

This commit is contained in:
2023-04-08 19:03:27 +02:00
parent eb1b2a78ca
commit 00336c592a
14 changed files with 245 additions and 94 deletions
+9 -5
View File
@@ -18,10 +18,14 @@ app.get('/', (req, res) => {
app.use('/', client)
dbReady().then((e) => {
cacheReady().then((e) => {
app.listen(port, '0.0.0.0', () => {
console.log(`Tone client api listening on port ${port}`)
export default
new Promise((resolve, reject) => {
dbReady().then((e) => {
cacheReady().then((e) => {
const listenServer = app.listen(port, '0.0.0.0', () => {
console.log(`Tone client api listening on port ${port}`)
resolve(listenServer)
})
})
})
})
})