Add src/index.test.js
Node.js CI Test / build (12.x) (push) Failing after 4s
Node.js CI Test / build (14.x) (push) Failing after 5s
Node.js CI Test / build (16.x) (push) Failing after 4s

This commit is contained in:
2026-05-20 04:47:48 +00:00
parent 45c9471211
commit 14aa0e2b6a
+21
View File
@@ -0,0 +1,21 @@
const app = require("express")();
const supertest = require("supertest");
const request = supertest(app);
app.get("/", function (req, res) {
res.status(200).send("practise with kubernetes");
});
describe("GET /", function () {
it("should return 200 OK", function (done) {
request
.get("/")
.expect(200)
.end(function (err, res) {
if (err) return done(err);
done();
});
});
});