Skip to content

Commit

Permalink
fixed security warning
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshshinde2012 committed Mar 14, 2024
1 parent aaf8916 commit 82bd852
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ PORT=8080
DB_HOST=127.0.0.1
DB_PORT=5432
DB_USER=user1
DB_PASSWORD="user1@123"
DB_PASSWORD=
DB_NAME=database
36 changes: 18 additions & 18 deletions test-report.xml
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<testExecutions version="1">
<file path="/Users/santosh/Documents/workspace/boilerplates/node-ts-sequelize-pg-boilerplate/tests/unit-tests/lib/logger.spec.ts">
<testCase name="Logger Lib should create a new log directory if one doesn&apos;t already exist" duration="11"/>
<testCase name="Logger Lib should create a new log directory if one doesn&apos;t already exist" duration="8"/>
</file>
<file path="/Users/santosh/Documents/workspace/boilerplates/node-ts-sequelize-pg-boilerplate/tests/unit-tests/middleware/error-handler.spec.ts">
<testCase name="ErrorHandler middleware with 0 status code" duration="4"/>
<testCase name="ErrorHandler middleware with 200 status code" duration="0"/>
<testCase name="ErrorHandler middleware with 0 status code" duration="5"/>
<testCase name="ErrorHandler middleware with 200 status code" duration="1"/>
<testCase name="ErrorHandler middleware with 200 status code" duration="0"/>
<testCase name="ErrorHandler middleware with 200 status code and updated env variables" duration="0"/>
</file>
<file path="/Users/santosh/Documents/workspace/boilerplates/node-ts-sequelize-pg-boilerplate/tests/unit-tests/components/system-status/SystemStatusController.spec.ts">
<testCase name="System Status Controller test getError method" duration="3"/>
<testCase name="System Status Controller test getError method" duration="2"/>
<testCase name="System Status Controller test getSystemInfo method" duration="3"/>
<testCase name="System Status Controller test getServerTime method" duration="1"/>
<testCase name="System Status Controller test getServerTime method" duration="0"/>
<testCase name="System Status Controller test getResourceUsage method" duration="1"/>
<testCase name="System Status Controller test getProcessInfo method" duration="0"/>
</file>
<file path="/Users/santosh/Documents/workspace/boilerplates/node-ts-sequelize-pg-boilerplate/tests/integration-tests/app.integration.spec.ts">
<testCase name="status integration tests can get default route success" duration="15"/>
<testCase name="status integration tests can get default web route success" duration="3"/>
</file>
<file path="/Users/santosh/Documents/workspace/boilerplates/node-ts-sequelize-pg-boilerplate/tests/unit-tests/components/enquiry/EnquiryService.spec.ts">
<testCase name="EnquiryService should return all enquiries" duration="4"/>
<testCase name="EnquiryService should return all enquiries" duration="3"/>
<testCase name="EnquiryService should throw error if failed to fetch enquiries" duration="6"/>
<testCase name="EnquiryService should return particular enquiry by id" duration="0"/>
<testCase name="EnquiryService should return particular enquiry by id" duration="1"/>
<testCase name="EnquiryService should throw error if failed to fetch empty enquiry by id" duration="2"/>
<testCase name="EnquiryService should throw error if failed to fetch enquiry by id" duration="0"/>
<testCase name="EnquiryService should update enquiry with valid input" duration="0"/>
<testCase name="EnquiryService should throw an error if it fails to update as it failed to find the enquiry by id" duration="0"/>
<testCase name="EnquiryService should update enquiry with valid input" duration="1"/>
<testCase name="EnquiryService should throw an error if it fails to update as it failed to find the enquiry by id" duration="2"/>
<testCase name="EnquiryService should throw an error if it fails to update" duration="1"/>
<testCase name="EnquiryService should create a new enquiry with valid input" duration="0"/>
<testCase name="EnquiryService should throw error if failed to create enquiry" duration="0"/>
<testCase name="EnquiryService should return true if enquiry is deleted successfully" duration="2"/>
<testCase name="EnquiryService should return false if no enquiry is deleted" duration="1"/>
<testCase name="EnquiryService should return true if enquiry is deleted successfully" duration="1"/>
<testCase name="EnquiryService should return false if no enquiry is deleted" duration="0"/>
<testCase name="EnquiryService should throw error if failed to delete enquiry" duration="1"/>
</file>
<file path="/Users/santosh/Documents/workspace/boilerplates/node-ts-sequelize-pg-boilerplate/tests/unit-tests/components/enquiry/EnquiryController.spec.ts">
<testCase name="Enquiry Controller should register routes and return router" duration="3"/>
<testCase name="Enquiry Controller should get all enquiries" duration="1"/>
<testCase name="Enquiry Controller should get all enquiries" duration="0"/>
<testCase name="Enquiry Controller should handle errors to get all enquiries" duration="0"/>
<testCase name="Enquiry Controller should get details of a specific enquiry" duration="1"/>
<testCase name="Enquiry Controller should handle errors to get all enquiries" duration="1"/>
<testCase name="Enquiry Controller should handle errors to get all enquiries" duration="0"/>
<testCase name="Enquiry Controller should create enquiry" duration="0"/>
<testCase name="Enquiry Controller should throw BAD_REQUEST error if name and country are not provided" duration="0"/>
<testCase name="Enquiry Controller should handle errors in create enquiry" duration="1"/>
<testCase name="Enquiry Controller should handle errors in create enquiry" duration="0"/>
<testCase name="Enquiry Controller should update enquiry" duration="0"/>
<testCase name="Enquiry Controller should handle errors in update enquiry" duration="1"/>
<testCase name="Enquiry Controller should delete enquiry" duration="0"/>
<testCase name="Enquiry Controller should handle errors in delete enquiry" duration="0"/>
</file>
<file path="/Users/santosh/Documents/workspace/boilerplates/node-ts-sequelize-pg-boilerplate/tests/integration-tests/app.integration.spec.ts">
<testCase name="status integration tests can get default route success" duration="12"/>
<testCase name="status integration tests can get default web route success" duration="2"/>
</file>
</testExecutions>

0 comments on commit 82bd852

Please sign in to comment.