• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

atlp-rwanda / trojans-ec-bn / 2afd455b-0aa8-4157-bcd6-7b8d240a9895

pending completion
2afd455b-0aa8-4157-bcd6-7b8d240a9895

Pull #111

circleci

teerenzo
payment
Pull Request #111: #184347109 Buyer should be able to make a payment

375 of 447 branches covered (83.89%)

Branch coverage included in aggregate %.

65 of 65 new or added lines in 9 files covered. (100.0%)

862 of 949 relevant lines covered (90.83%)

14.54 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

60.0
/src/controllers/productWishesController.js
1
/* eslint-disable valid-jsdoc */
2
/* eslint-disable require-jsdoc */
3

4
import ProductWishesService from "../services/productWishesService";
5

6
class ProductWishesController {
7
  static async addToProductWishes(req, res) {
8
    try {
8✔
9
      const response = await ProductWishesService.addToProductWishes(req);
8✔
10
      return res.status(201).json({ status: 201, message: response });
8✔
11
    } catch (error) {
12
      return res.status(500).json({ status: 500, message: error });
×
13
    }
14
  }
15

16
  static async getProductWishes(req, res) {
17
    try {
2✔
18
      const response = await ProductWishesService.getProductWishes(req);
2✔
19
      return res.status(200).json({ status: 200, data: response });
2✔
20
    } catch (error) {
21
      return res.status(500).json({ status: 500, message: error });
×
22
    }
23
  }
24

25
  static async getWishProductByProduct(req, res) {
26
    try {
×
27
      const response = await ProductWishesService.getProductWishesByProduct(
×
28
        req
29
      );
30
      return res.status(200).json({ status: 200, data: response });
×
31
    } catch (error) {
32
      return res.status(500).json({ status: 500, message: error });
×
33
    }
34
  }
35

36
  static async getWishProductByUser(req, res) {
37
    try {
2✔
38
      const response = await ProductWishesService.getProductWishesByUser(req);
2✔
39
      return res.status(200).json({ status: 200, data: response });
2✔
40
    } catch (error) {
41
      return res.status(500).json({ status: 500, message: error });
×
42
    }
43
  }
44

45
  static async getProductWishesSeller(req, res) {
46
    try {
2✔
47
      const response = await ProductWishesService.getProductWishesSeller(req)
2✔
48
      return res.status(200).json({ status: 200, data: response });
2✔
49
    } catch (error) {
50
      return res.status(500).json({ status: 500, message: error });
×
51
    }
52
  }
53

54
}
55

56
export default ProductWishesController;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc