Don't run app.listen when testing nat-globelet-playground

This commit is contained in:
2022-10-02 19:58:45 +00:00
parent 8de1aa342d
commit 45f1e83a61
2 changed files with 3 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
(let [app (Express.call)
port 3000]
(app.get "/" ->[req res next] (res.send "Hello World!"))
(app.listen port ->(print "kiss-express listening at http://localhost:$port")))
(#unless test
(app.listen port ->(print "kiss-express listening at http://localhost:$port"))))

View File

@@ -21,4 +21,4 @@ if [ ! -d .haxelib/kiss ]; then
fi
done
fi
haxe build.hxml
haxe -D test build.hxml