We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff2eacd commit fd60be8Copy full SHA for fd60be8
test/ports.test.js
@@ -47,5 +47,20 @@ describe('Project statuses', () => {
47
throw new Error(`${err} for ${name} on port number ${portNum}`);
48
}
49
});
50
+ it(`Pinging ${name} should return a status code of 200 `, async () => {
51
+ try {
52
+ const response = await axios.get(
53
+ `http://localhost:${portNum}/status/ping`
54
+ );
55
+
56
+ // eslint-disable-next-line no-undef
57
+ expect(response.status).toBe(200);
58
+ } catch (err) {
59
+ // Throw and error here to fail this test
60
+ throw new Error(
61
+ `${err} for ${name} on port number ${portNum} : status code 200 not returned`
62
63
+ }
64
+ });
65
66
0 commit comments