Skip to content

Commit 24ac10e

Browse files
Removed unsued variable
1 parent c260885 commit 24ac10e

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

src/components/system-status/system-status.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Application, NextFunction, Request, Response, Router } from 'express';
1+
import { NextFunction, Request, Response, Router } from 'express';
22
import * as os from 'os';
33
import * as process from 'process';
44
import { ReasonPhrases, StatusCodes } from 'http-status-codes';

test-report.xml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,41 @@
33
<file path="/Users/santosh/Documents/workspace/personal/node-boilerplate/tests/unit-tests/dummy.spec.ts">
44
<testCase name="Dummy Test Cases Verify Jest is working" duration="4"/>
55
</file>
6-
<file path="/Users/santosh/Documents/workspace/personal/node-boilerplate/tests/unit-tests/lib/logger.spec.ts">
7-
<testCase name="Logger Lib should create a new log directory if one doesn&apos;t already exist" duration="8"/>
8-
</file>
96
<file path="/Users/santosh/Documents/workspace/personal/node-boilerplate/tests/unit-tests/lib/crypto.spec.ts">
107
<testCase name="Crypto Lib (Encryption/Decryption) Testing for text" duration="7"/>
11-
<testCase name="Crypto Lib (Encryption/Decryption) Testing for array" duration="1"/>
8+
<testCase name="Crypto Lib (Encryption/Decryption) Testing for array" duration="2"/>
129
<testCase name="Crypto Lib (Encryption/Decryption) Testing for object" duration="2"/>
1310
</file>
11+
<file path="/Users/santosh/Documents/workspace/personal/node-boilerplate/tests/unit-tests/lib/logger.spec.ts">
12+
<testCase name="Logger Lib should create a new log directory if one doesn&apos;t already exist" duration="11"/>
13+
</file>
14+
<file path="/Users/santosh/Documents/workspace/personal/node-boilerplate/tests/integration-tests/app.integration.spec.ts">
15+
<testCase name="status integration tests can get default route success" duration="17"/>
16+
<testCase name="status integration tests can get default web route success" duration="2"/>
17+
</file>
1418
<file path="/Users/santosh/Documents/workspace/personal/node-boilerplate/tests/unit-tests/components/SystemStatusController.spec.ts">
15-
<testCase name="System Status Controller test getError method" duration="3"/>
16-
<testCase name="System Status Controller test getSystemInfo method" duration="3"/>
19+
<testCase name="System Status Controller test getError method" duration="2"/>
20+
<testCase name="System Status Controller test getSystemInfo method" duration="2"/>
1721
<testCase name="System Status Controller test getSystemInfo method with updated env variables" duration="2"/>
1822
<testCase name="System Status Controller test getSystemInfo method with exception" duration="1"/>
19-
<testCase name="System Status Controller test getServerTime method" duration="1"/>
20-
<testCase name="System Status Controller test getServerTime method with exception" duration="0"/>
21-
<testCase name="System Status Controller test getResourceUsage method" duration="1"/>
23+
<testCase name="System Status Controller test getServerTime method" duration="0"/>
24+
<testCase name="System Status Controller test getServerTime method with exception" duration="1"/>
25+
<testCase name="System Status Controller test getResourceUsage method" duration="0"/>
2226
<testCase name="System Status Controller test getResourceUsage method with exception" duration="0"/>
2327
<testCase name="System Status Controller test getProcessInfo method" duration="1"/>
2428
<testCase name="System Status Controller test getProcessInfo method with exception" duration="0"/>
2529
</file>
26-
<file path="/Users/santosh/Documents/workspace/personal/node-boilerplate/tests/unit-tests/middleware/error-handler.spec.ts">
27-
<testCase name="ErrorHandler middleware with 0 status code" duration="4"/>
28-
<testCase name="ErrorHandler middleware with 200 status code" duration="1"/>
29-
<testCase name="ErrorHandler middleware with 200 status code" duration="0"/>
30-
<testCase name="ErrorHandler middleware with 200 status code and updated env variables" duration="2"/>
31-
</file>
32-
<file path="/Users/santosh/Documents/workspace/personal/node-boilerplate/tests/integration-tests/app.integration.spec.ts">
33-
<testCase name="status integration tests can get default route success" duration="15"/>
34-
<testCase name="status integration tests can get default web route success" duration="3"/>
35-
</file>
3630
<file path="/Users/santosh/Documents/workspace/personal/node-boilerplate/tests/integration-tests/status.integration.spec.ts">
3731
<testCase name="status integration tests can get server time" duration="15"/>
38-
<testCase name="status integration tests can get server system info" duration="5"/>
39-
<testCase name="status integration tests can get server system usage" duration="2"/>
32+
<testCase name="status integration tests can get server system info" duration="4"/>
33+
<testCase name="status integration tests can get server system usage" duration="3"/>
4034
<testCase name="status integration tests can get server system process info" duration="2"/>
41-
<testCase name="status integration tests should get the error" duration="4"/>
35+
<testCase name="status integration tests should get the error" duration="3"/>
36+
</file>
37+
<file path="/Users/santosh/Documents/workspace/personal/node-boilerplate/tests/unit-tests/middleware/error-handler.spec.ts">
38+
<testCase name="ErrorHandler middleware with 0 status code" duration="3"/>
39+
<testCase name="ErrorHandler middleware with 200 status code" duration="0"/>
40+
<testCase name="ErrorHandler middleware with 200 status code" duration="1"/>
41+
<testCase name="ErrorHandler middleware with 200 status code and updated env variables" duration="1"/>
4242
</file>
4343
</testExecutions>

0 commit comments

Comments
 (0)