dotkom / AMaCS

Committee application application for Online online.
5 stars 2 forks source link

Tests for components #9

Closed duvholt closed 7 years ago

duvholt commented 7 years ago

Sorry about the pr size 😇

Test Suites: 16 passed, 16 total
Tests:       51 passed, 51 total
Snapshots:   37 passed, 37 total
Time:        3.875s
Ran all test suites.
-----------------------|----------|----------|----------|----------|----------------|
File                   |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
-----------------------|----------|----------|----------|----------|----------------|
All files              |    54.15 |    53.25 |    57.43 |    54.46 |                |
 src                   |       75 |       25 |       60 |    73.91 |                |
  Routes.jsx           |    69.23 |        0 |     62.5 |    66.67 |    21,28,29,36 |
  index.jsx            |    81.82 |       50 |       50 |    81.82 |          35,36 |
 src/common            |       25 |       40 |       50 |       40 |                |
  constants.example.js |        0 |        0 |        0 |        0 |         1,4,13 |
  constants.js         |      100 |      100 |      100 |      100 |                |
  testUtils.js         |      100 |    66.67 |      100 |      100 |              2 |
 src/components        |      100 |    94.44 |      100 |      100 |                |
  Button.jsx           |      100 |      100 |      100 |      100 |                |
  Heading.jsx          |      100 |      100 |      100 |      100 |                |
  Input.jsx            |      100 |      100 |      100 |      100 |                |
  Login.jsx            |      100 |       90 |      100 |      100 |             25 |
  NavigationButton.jsx |      100 |      100 |      100 |      100 |                |
  NotFound.jsx         |      100 |      100 |      100 |      100 |                |
  ToggleSwitch.jsx     |      100 |      100 |      100 |      100 |                |
 src/components/Admin  |      100 |      100 |      100 |      100 |                |
  AdminContainer.jsx   |      100 |      100 |      100 |      100 |                |
 src/components/App    |    98.08 |    81.82 |    96.15 |    98.08 |                |
  AppContainer.jsx     |      100 |      100 |      100 |      100 |                |
  CommitteeInfo.jsx    |      100 |      100 |      100 |      100 |                |
  Home.jsx             |    91.67 |       60 |    88.89 |    91.67 |            111 |
  SelectContainer.jsx  |      100 |      100 |      100 |      100 |                |
  Selectable.jsx       |      100 |      100 |      100 |      100 |                |
  SelectedList.jsx     |      100 |      100 |      100 |      100 |                |
 src/services          |      100 |       75 |      100 |      100 |                |
  ServiceManager.js    |      100 |       75 |      100 |      100 |             15 |
  ServiceProvider.jsx  |      100 |      100 |      100 |      100 |                |
  connectServices.js   |      100 |      100 |      100 |      100 |                |
  index.js             |      100 |      100 |      100 |      100 |                |
 src/services/auth     |     3.85 |        0 |        0 |     3.85 |                |
  auth.service.js      |        5 |        0 |        0 |        5 |... 71,75,81,86 |
  index.js             |      100 |      100 |      100 |      100 |                |
  user.js              |        0 |        0 |        0 |        0 |... 36,40,43,47 |
 src/services/http     |        0 |        0 |        0 |        0 |                |
  http.service.js      |        0 |        0 |        0 |        0 |... 102,105,110 |
  index.js             |      100 |      100 |      100 |      100 |                |
-----------------------|----------|----------|----------|----------|----------------|
Done in 5.64s.