mchirico / ts-express

Typescript/Express/Angular starter project
https://tsexpress.cwxstat.io
Apache License 2.0
1 stars 0 forks source link

Testing... #49

Closed mchirico closed 4 years ago

mchirico commented 4 years ago
it('actual calls', fakeAsync(() => {

    const expectedArray = [
      ['Home', '/home'],
      ['Info', '/info'],
      ['Page0', '/page0'],
      ['SVG', '/svg'],
      ['Auth', '/auth'],
      ['Notification', '/notification'],
      ['Pomodoro', '/pomodoro'],
      ['FB-Notification', '/fbnotification'],
    ];
    expectedArray.forEach((value, index) => {

      component.navigateMenu(value[0]);
      tick();
      expect(location.path()).toBe(value[1]);

      console.log(index);
      console.log(value[0], value[1]);
    });

  }));
codecov-commenter commented 4 years ago

Codecov Report

Merging #49 into master will increase coverage by 7.02%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #49      +/-   ##
==========================================
+ Coverage   60.33%   67.35%   +7.02%     
==========================================
  Files          22       22              
  Lines         242      242              
  Branches       31       31              
==========================================
+ Hits          146      163      +17     
+ Misses         87       68      -19     
- Partials        9       11       +2     
Impacted Files Coverage Δ
angular/src/app/navbars/navbar/navbar.component.ts 79.16% <0.00%> (+70.83%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 69426de...8a05a0a. Read the comment docs.