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

atlp-rwanda / champs-ec-fe / 13ba735d-90f9-49d3-9acb-f5a6c957f324

18 Jun 2024 10:20PM UTC coverage: 58.852% (-28.3%) from 87.175%
13ba735d-90f9-49d3-9acb-f5a6c957f324

Pull #13

circleci

k3lly003
Merge pull request #26 from atlp-rwanda/ft-disable-users-#187300202

Ft disable users #187300202
Pull Request #13: feat(ProductView): ProductView (all/one) according to there user's role #187300196

70 of 95 branches covered (73.68%)

Branch coverage included in aggregate %.

84 of 626 new or added lines in 24 files covered. (13.42%)

219 existing lines in 7 files now uncovered.

1366 of 2345 relevant lines covered (58.25%)

2.27 hits per line

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

0.0
/src/utils/requests.ts
NEW
1
import { ProductType } from '@/types/Product';
×
2
import request from './axios';
×
3

×
4
// axios request example usage
×
NEW
5
type ProductAPIType = {
×
NEW
6
  list: () => Promise<ProductType[]>;
×
NEW
7
  single: (id: number) => Promise<ProductType>;
×
NEW
8
  create: (data: object) => Promise<ProductType>;
×
NEW
9
};
×
NEW
10

×
11
const User = {
×
12
  list: () => request.get('/users'),
×
13
  create: (data: object) => request.post('/users', data),
×
14
};
×
15

×
NEW
16
export const Product = {
×
17
  list: () => request.get('/products'),
×
NEW
18
  list_range: (page: number, limit: number) =>
×
NEW
19
    request.get(`/products?page=${page}&limit=${limit}`),
×
NEW
20
  single: (id: string) => request.get(`/products/${id}`),
×
21
};
×
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