atlp-rwanda / knights-ecomm-be

Knights ecommerce backend APIs
https://knights-ecomm-be-lcdh.onrender.com
0 stars 0 forks source link

Implementation of view a Single Product Function #86

Closed maxCastro1 closed 6 months ago

maxCastro1 commented 6 months ago

Description

This PR includes the implementation of the viewSingleProduct function in the Product service. The function is designed to fetch and return the details of a single product from the database.

Functionality

Test

Tests have been added to verify the new functionality:

coveralls commented 6 months ago

Pull Request Test Coverage Report for Build 9111262881

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/services/productServices/viewSingleProduct.ts 15 18 83.33%
<!-- Total: 19 22 86.36% -->
Files with Coverage Reduction New Missed Lines %
src/utils/roles.ts 1 50.0%
<!-- Total: 1 -->
Totals Coverage Status
Change from base Build 9109943404: -0.005%
Covered Lines: 963
Relevant Lines: 1108

💛 - Coveralls