ffc-pay-schemes 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -9
- package/app/get-scheme-id-from-source-system.js +10 -0
- package/app/get-scheme-name-from-scheme-id.js +10 -0
- package/app/get-schemes.js +3 -1
- package/app/get-source-system-from-scheme-id.js +10 -0
- package/index.js +6 -0
- package/package.json +1 -1
- package/sonar-project.properties +2 -2
- package/test/unit/get-scheme-id-from-source-system.test.js +50 -0
- package/test/unit/get-scheme-name-from-scheme-id.test.js +50 -0
- package/test/unit/get-schemes.test.js +5 -2
- package/test/unit/get-source-system-from-scheme-id.test.js +50 -0
- package/test-output/cobertura-coverage.xml +74 -7
- package/test-output/junit.xml +288 -258
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/account-codes/ap.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/account-codes/ar-admin.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/account-codes/ar-irregular.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/account-codes/index.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/delivery-bodies.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/description-codes.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/fund-codes.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/index.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/pillars.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/scheme-batch-properties.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/scheme-ids.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/scheme-names.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/schemes-not-requiring-ppas.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/schemes-providing-account-values.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/schemes.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/constants/source-systems.js.html +2 -2
- package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/create-default-invoice-number.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/create-es-invoice-number.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/create-imps-invoice-number.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/create-siti-agri-invoice-number.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/create-standard-scheme-invoice-number.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/index.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/index.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/use-invoice-number-as-is.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-split-invoice-number/create-default-invoice-number.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-split-invoice-number/create-siti-agri-invoice-number.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-split-invoice-number/index.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/create-split-invoice-number/index.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/bps-map.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/cohtc-map.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/cs-map.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/default-map.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/delinked-map.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/index.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/index.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/lump-sums-map.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/sfi-frps-map.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/vet-visits-map.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-scheme-batch-properties.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-scheme-id-from-source-system.js.html +115 -0
- package/test-output/lcov-report/ffc-pay-schemes/app/get-scheme-name-from-scheme-id.js.html +115 -0
- package/test-output/lcov-report/ffc-pay-schemes/app/get-scheme-name.js.html +115 -0
- package/test-output/lcov-report/ffc-pay-schemes/app/get-scheme-properties.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/get-schemes.js.html +11 -5
- package/test-output/lcov-report/ffc-pay-schemes/app/get-source-system-from-scheme-id.js.html +115 -0
- package/test-output/lcov-report/ffc-pay-schemes/app/get-source-system.js.html +115 -0
- package/test-output/lcov-report/ffc-pay-schemes/app/index.html +49 -4
- package/test-output/lcov-report/ffc-pay-schemes/app/scheme-does-not-require-ppas.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/app/scheme-provides-accounting-values.js.html +1 -1
- package/test-output/lcov-report/ffc-pay-schemes/index.html +5 -5
- package/test-output/lcov-report/ffc-pay-schemes/index.js.html +22 -4
- package/test-output/lcov-report/index.html +11 -11
- package/test-output/lcov.info +65 -7
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">0% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>0/
|
|
28
|
+
<span class='fraction'>0/13</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">0% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>0/
|
|
49
|
+
<span class='fraction'>0/13</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -84,13 +84,13 @@
|
|
|
84
84
|
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
85
85
|
</td>
|
|
86
86
|
<td data-value="0" class="pct low">0%</td>
|
|
87
|
-
<td data-value="
|
|
87
|
+
<td data-value="13" class="abs low">0/13</td>
|
|
88
88
|
<td data-value="100" class="pct high">100%</td>
|
|
89
89
|
<td data-value="0" class="abs high">0/0</td>
|
|
90
90
|
<td data-value="100" class="pct high">100%</td>
|
|
91
91
|
<td data-value="0" class="abs high">0/0</td>
|
|
92
92
|
<td data-value="0" class="pct low">0%</td>
|
|
93
|
-
<td data-value="
|
|
93
|
+
<td data-value="13" class="abs low">0/13</td>
|
|
94
94
|
</tr>
|
|
95
95
|
|
|
96
96
|
</tbody>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at 2026-08-
|
|
104
|
+
at 2026-08-26T16:45:39.822Z
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../prettify.js"></script>
|
|
107
107
|
<script>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">0% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>0/
|
|
28
|
+
<span class='fraction'>0/13</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">0% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>0/
|
|
49
|
+
<span class='fraction'>0/13</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -84,7 +84,16 @@
|
|
|
84
84
|
<a name='L19'></a><a href='#L19'>19</a>
|
|
85
85
|
<a name='L20'></a><a href='#L20'>20</a>
|
|
86
86
|
<a name='L21'></a><a href='#L21'>21</a>
|
|
87
|
-
<a name='L22'></a><a href='#L22'>22</a
|
|
87
|
+
<a name='L22'></a><a href='#L22'>22</a>
|
|
88
|
+
<a name='L23'></a><a href='#L23'>23</a>
|
|
89
|
+
<a name='L24'></a><a href='#L24'>24</a>
|
|
90
|
+
<a name='L25'></a><a href='#L25'>25</a>
|
|
91
|
+
<a name='L26'></a><a href='#L26'>26</a>
|
|
92
|
+
<a name='L27'></a><a href='#L27'>27</a>
|
|
93
|
+
<a name='L28'></a><a href='#L28'>28</a></td><td class="line-coverage quiet"><span class="cline-any cline-no"> </span>
|
|
94
|
+
<span class="cline-any cline-no"> </span>
|
|
95
|
+
<span class="cline-any cline-no"> </span>
|
|
96
|
+
<span class="cline-any cline-no"> </span>
|
|
88
97
|
<span class="cline-any cline-no"> </span>
|
|
89
98
|
<span class="cline-any cline-no"> </span>
|
|
90
99
|
<span class="cline-any cline-no"> </span>
|
|
@@ -105,12 +114,18 @@
|
|
|
105
114
|
<span class="cline-any cline-neutral"> </span>
|
|
106
115
|
<span class="cline-any cline-neutral"> </span>
|
|
107
116
|
<span class="cline-any cline-neutral"> </span>
|
|
117
|
+
<span class="cline-any cline-neutral"> </span>
|
|
118
|
+
<span class="cline-any cline-neutral"> </span>
|
|
119
|
+
<span class="cline-any cline-neutral"> </span>
|
|
108
120
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">const { createInvoiceNumber } = <span class="cstat-no" title="statement not covered" >require('./app/create-invoice-number')</span>
|
|
109
121
|
const { createSplitInvoiceNumber } = <span class="cstat-no" title="statement not covered" >require('./app/create-split-invoice-number')</span>
|
|
110
122
|
const { getAccountCodeMap } = <span class="cstat-no" title="statement not covered" >require('./app/get-account-code-map')</span>
|
|
111
123
|
const { getSchemeBatchProperties } = <span class="cstat-no" title="statement not covered" >require('./app/get-scheme-batch-properties')</span>
|
|
124
|
+
const { getSchemeIdFromSourceSystem } = <span class="cstat-no" title="statement not covered" >require('./app/get-scheme-id-from-source-system')</span>
|
|
125
|
+
const { getSchemeNameFromSchemeId } = <span class="cstat-no" title="statement not covered" >require('./app/get-scheme-name-from-scheme-id')</span>
|
|
112
126
|
const { getSchemeProperties } = <span class="cstat-no" title="statement not covered" >require('./app/get-scheme-properties')</span>
|
|
113
127
|
const { getSchemes } = <span class="cstat-no" title="statement not covered" >require('./app/get-schemes')</span>
|
|
128
|
+
const { getSourceSystemFromSchemeId } = <span class="cstat-no" title="statement not covered" >require('./app/get-source-system-from-scheme-id')</span>
|
|
114
129
|
const { schemeDoesNotRequirePPAs } = <span class="cstat-no" title="statement not covered" >require('./app/scheme-does-not-require-ppas')</span>
|
|
115
130
|
const { schemeProvidesAccountingValues } = <span class="cstat-no" title="statement not covered" >require('./app/scheme-provides-accounting-values')</span>
|
|
116
131
|
const schemeIds = <span class="cstat-no" title="statement not covered" >require('./app/constants/scheme-ids')</span>
|
|
@@ -120,8 +135,11 @@ const schemeIds = <span class="cstat-no" title="statement not covered" >require(
|
|
|
120
135
|
createSplitInvoiceNumber,
|
|
121
136
|
getAccountCodeMap,
|
|
122
137
|
getSchemeBatchProperties,
|
|
138
|
+
getSchemeIdFromSourceSystem,
|
|
139
|
+
getSchemeNameFromSchemeId,
|
|
123
140
|
getSchemeProperties,
|
|
124
141
|
getSchemes,
|
|
142
|
+
getSourceSystemFromSchemeId,
|
|
125
143
|
schemeDoesNotRequirePPAs,
|
|
126
144
|
schemeProvidesAccountingValues,
|
|
127
145
|
schemeIds
|
|
@@ -133,7 +151,7 @@ const schemeIds = <span class="cstat-no" title="statement not covered" >require(
|
|
|
133
151
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
134
152
|
Code coverage generated by
|
|
135
153
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
136
|
-
at 2026-08-
|
|
154
|
+
at 2026-08-26T16:45:39.822Z
|
|
137
155
|
</div>
|
|
138
156
|
<script src="../prettify.js"></script>
|
|
139
157
|
<script>
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">94.24% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>213/226</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
40
|
<span class="strong">100% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>27/27</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">94.09% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>207/220</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -84,13 +84,13 @@
|
|
|
84
84
|
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
85
85
|
</td>
|
|
86
86
|
<td data-value="0" class="pct low">0%</td>
|
|
87
|
-
<td data-value="
|
|
87
|
+
<td data-value="13" class="abs low">0/13</td>
|
|
88
88
|
<td data-value="100" class="pct high">100%</td>
|
|
89
89
|
<td data-value="0" class="abs high">0/0</td>
|
|
90
90
|
<td data-value="100" class="pct high">100%</td>
|
|
91
91
|
<td data-value="0" class="abs high">0/0</td>
|
|
92
92
|
<td data-value="0" class="pct low">0%</td>
|
|
93
|
-
<td data-value="
|
|
93
|
+
<td data-value="13" class="abs low">0/13</td>
|
|
94
94
|
</tr>
|
|
95
95
|
|
|
96
96
|
<tr>
|
|
@@ -99,13 +99,13 @@
|
|
|
99
99
|
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
100
100
|
</td>
|
|
101
101
|
<td data-value="100" class="pct high">100%</td>
|
|
102
|
-
<td data-value="
|
|
102
|
+
<td data-value="53" class="abs high">53/53</td>
|
|
103
103
|
<td data-value="100" class="pct high">100%</td>
|
|
104
104
|
<td data-value="10" class="abs high">10/10</td>
|
|
105
105
|
<td data-value="100" class="pct high">100%</td>
|
|
106
|
-
<td data-value="
|
|
106
|
+
<td data-value="16" class="abs high">16/16</td>
|
|
107
107
|
<td data-value="100" class="pct high">100%</td>
|
|
108
|
-
<td data-value="
|
|
108
|
+
<td data-value="47" class="abs high">47/47</td>
|
|
109
109
|
</tr>
|
|
110
110
|
|
|
111
111
|
<tr>
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
192
192
|
Code coverage generated by
|
|
193
193
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
194
|
-
at 2026-08-
|
|
194
|
+
at 2026-08-26T16:45:39.822Z
|
|
195
195
|
</div>
|
|
196
196
|
<script src="prettify.js"></script>
|
|
197
197
|
<script>
|
package/test-output/lcov.info
CHANGED
|
@@ -11,8 +11,11 @@ DA:6,0
|
|
|
11
11
|
DA:7,0
|
|
12
12
|
DA:8,0
|
|
13
13
|
DA:9,0
|
|
14
|
+
DA:10,0
|
|
14
15
|
DA:11,0
|
|
15
|
-
|
|
16
|
+
DA:12,0
|
|
17
|
+
DA:14,0
|
|
18
|
+
LF:13
|
|
16
19
|
LH:0
|
|
17
20
|
BRF:0
|
|
18
21
|
BRH:0
|
|
@@ -35,6 +38,42 @@ BRF:0
|
|
|
35
38
|
BRH:0
|
|
36
39
|
end_of_record
|
|
37
40
|
TN:
|
|
41
|
+
SF:app/get-scheme-id-from-source-system.js
|
|
42
|
+
FN:3,(anonymous_0)
|
|
43
|
+
FN:4,(anonymous_1)
|
|
44
|
+
FNF:2
|
|
45
|
+
FNH:2
|
|
46
|
+
FNDA:4,(anonymous_0)
|
|
47
|
+
FNDA:2,(anonymous_1)
|
|
48
|
+
DA:1,1
|
|
49
|
+
DA:3,1
|
|
50
|
+
DA:4,4
|
|
51
|
+
DA:5,4
|
|
52
|
+
DA:8,1
|
|
53
|
+
LF:5
|
|
54
|
+
LH:5
|
|
55
|
+
BRF:0
|
|
56
|
+
BRH:0
|
|
57
|
+
end_of_record
|
|
58
|
+
TN:
|
|
59
|
+
SF:app/get-scheme-name-from-scheme-id.js
|
|
60
|
+
FN:3,(anonymous_0)
|
|
61
|
+
FN:4,(anonymous_1)
|
|
62
|
+
FNF:2
|
|
63
|
+
FNH:2
|
|
64
|
+
FNDA:4,(anonymous_0)
|
|
65
|
+
FNDA:2,(anonymous_1)
|
|
66
|
+
DA:1,1
|
|
67
|
+
DA:3,1
|
|
68
|
+
DA:4,4
|
|
69
|
+
DA:5,4
|
|
70
|
+
DA:8,1
|
|
71
|
+
LF:5
|
|
72
|
+
LH:5
|
|
73
|
+
BRF:0
|
|
74
|
+
BRH:0
|
|
75
|
+
end_of_record
|
|
76
|
+
TN:
|
|
38
77
|
SF:app/get-scheme-properties.js
|
|
39
78
|
FN:4,(anonymous_0)
|
|
40
79
|
FN:6,(anonymous_1)
|
|
@@ -77,17 +116,36 @@ BRH:10
|
|
|
77
116
|
end_of_record
|
|
78
117
|
TN:
|
|
79
118
|
SF:app/get-schemes.js
|
|
80
|
-
FN:
|
|
81
|
-
FN:
|
|
119
|
+
FN:5,(anonymous_0)
|
|
120
|
+
FN:6,(anonymous_1)
|
|
82
121
|
FNF:2
|
|
83
122
|
FNH:2
|
|
84
123
|
FNDA:18,(anonymous_0)
|
|
85
124
|
FNDA:306,(anonymous_1)
|
|
86
125
|
DA:1,1
|
|
87
126
|
DA:2,1
|
|
88
|
-
DA:
|
|
89
|
-
DA:5,
|
|
90
|
-
DA:
|
|
127
|
+
DA:3,1
|
|
128
|
+
DA:5,1
|
|
129
|
+
DA:6,306
|
|
130
|
+
DA:12,1
|
|
131
|
+
LF:6
|
|
132
|
+
LH:6
|
|
133
|
+
BRF:0
|
|
134
|
+
BRH:0
|
|
135
|
+
end_of_record
|
|
136
|
+
TN:
|
|
137
|
+
SF:app/get-source-system-from-scheme-id.js
|
|
138
|
+
FN:3,(anonymous_0)
|
|
139
|
+
FN:4,(anonymous_1)
|
|
140
|
+
FNF:2
|
|
141
|
+
FNH:2
|
|
142
|
+
FNDA:4,(anonymous_0)
|
|
143
|
+
FNDA:2,(anonymous_1)
|
|
144
|
+
DA:1,1
|
|
145
|
+
DA:3,1
|
|
146
|
+
DA:4,4
|
|
147
|
+
DA:5,4
|
|
148
|
+
DA:8,1
|
|
91
149
|
LF:5
|
|
92
150
|
LH:5
|
|
93
151
|
BRF:0
|
|
@@ -235,7 +293,7 @@ TN:
|
|
|
235
293
|
SF:app/constants/source-systems.js
|
|
236
294
|
FNF:0
|
|
237
295
|
FNH:0
|
|
238
|
-
DA:1,
|
|
296
|
+
DA:1,3
|
|
239
297
|
LF:1
|
|
240
298
|
LH:1
|
|
241
299
|
BRF:0
|