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

ialopezg / corejs / #5

03 Nov 2023 08:38PM UTC coverage: 42.153% (-47.5%) from 89.623%
#5

push

ialopezg
feat: add microservice feature

10 of 84 branches covered (0.0%)

Branch coverage included in aggregate %.

49 of 77 new or added lines in 20 files covered. (63.64%)

155 existing lines in 21 files now uncovered.

221 of 464 relevant lines covered (47.63%)

0.51 hits per line

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

66.67
/src/common/test/decorators/controller.decorator.spec.ts
1
import 'reflect-metadata';
1✔
2

3
import { expect } from 'chai';
1✔
4

5
import { Controller } from '../../decorators';
1✔
6
import { PATH_METADATA } from '../../constants';
1✔
7

8
describe('@Controller', () => {
1✔
9
  const metadata = {
1✔
10
    path: 'test',
11
  };
12

13
  @Controller(metadata)
14
  class TestController {}
1✔
15
  @Controller()
16
  class EmptyDecoratorController {}
1✔
17
  @Controller()
18
  class AnotherTestController {}
1✔
19

20
  it('should enhance transport with expected path metadata', () => {
1✔
UNCOV
21
    const path = Reflect.getMetadata(PATH_METADATA, TestController);
×
22

UNCOV
23
    expect(path).to.be.eql(metadata.path);
×
24
  });
25

26
  it('should set default path when no object passed as param', () => {
1✔
UNCOV
27
    const path = Reflect.getMetadata(PATH_METADATA, EmptyDecoratorController);
×
28

UNCOV
29
    expect(path).to.be.eql('/');
×
30
  });
31

32
  it('should set default path when empty passed as param', () => {
1✔
UNCOV
33
    const path = Reflect.getMetadata(PATH_METADATA, AnotherTestController);
×
34

UNCOV
35
    expect(path).to.be.eql('/');
×
36
  });
37
});
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

© 2026 Coveralls, Inc