push
github
2100 of 3363 branches covered (62.44%)
282 of 757 new or added lines in 74 files covered. (37.25%)
14879 existing lines in 182 files now uncovered.25574 of 98035 relevant lines covered (26.09%)
5.17 hits per line
1 |
import type { ConfigService } from '@nestjs/config'; |
1✔ |
2 |
|
1✔ |
3 |
export const helpers = (config: ConfigService) => { |
|
4 |
const publicOrigin = config.get<string>('PUBLIC_ORIGIN'); |
151✔ |
5 |
const brandName = config.get<string>('BRAND_NAME'); |
151✔ |
6 |
|
151✔ |
7 |
return {
|
151✔ |
8 |
publicOrigin: function () {
|
151✔ |
UNCOV
9
|
return publicOrigin;
|
× |
UNCOV
10
|
}, |
× |
11 |
brandName: function () {
|
151✔ |
UNCOV
12
|
return brandName;
|
× |
UNCOV
13
|
}, |
× |
14 |
currentYear: function () {
|
151✔ |
UNCOV
15
|
return new Date().getFullYear(); |
× |
UNCOV
16
|
}, |
× |
17 |
}; |
151✔ |
18 |
}; |
151✔ |