@ukhomeoffice/cop-react-form-renderer 4.3.0 → 4.5.0
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.
|
@@ -21,7 +21,7 @@ describe('Utils.Operate.getIndexOfPriorMatchingValueIn', function () {
|
|
|
21
21
|
value: 'cde'
|
|
22
22
|
};
|
|
23
23
|
var result = (0, _getIndexOfMatchingValueIn.default)(CONFIG, DATA);
|
|
24
|
-
expect(result).toEqual(2);
|
|
24
|
+
expect(result).toEqual('2');
|
|
25
25
|
});
|
|
26
26
|
it('Should handle getting value from given field', function () {
|
|
27
27
|
var CONFIG = {
|
|
@@ -29,7 +29,7 @@ describe('Utils.Operate.getIndexOfPriorMatchingValueIn', function () {
|
|
|
29
29
|
field: 'valueToSearchFor'
|
|
30
30
|
};
|
|
31
31
|
var result = (0, _getIndexOfMatchingValueIn.default)(CONFIG, DATA);
|
|
32
|
-
expect(result).toEqual(2);
|
|
32
|
+
expect(result).toEqual('2');
|
|
33
33
|
});
|
|
34
34
|
it('Should handle interpolated string for field', function () {
|
|
35
35
|
var CONFIG = {
|
|
@@ -37,7 +37,7 @@ describe('Utils.Operate.getIndexOfPriorMatchingValueIn', function () {
|
|
|
37
37
|
field: '${fieldName}'
|
|
38
38
|
};
|
|
39
39
|
var result = (0, _getIndexOfMatchingValueIn.default)(CONFIG, DATA);
|
|
40
|
-
expect(result).toEqual(2);
|
|
40
|
+
expect(result).toEqual('2');
|
|
41
41
|
});
|
|
42
42
|
it('Should handle a cutoff value being specified', function () {
|
|
43
43
|
var CONFIG = {
|
|
@@ -111,7 +111,7 @@ describe('Utils.Operate.getIndexOfPriorMatchingValueIn', function () {
|
|
|
111
111
|
value: 'cde'
|
|
112
112
|
};
|
|
113
113
|
var result = (0, _getIndexOfMatchingValueIn.default)(CONFIG, DATA);
|
|
114
|
-
expect(result).toEqual(2);
|
|
114
|
+
expect(result).toEqual('2');
|
|
115
115
|
});
|
|
116
116
|
it('Should return null when the target does not exist', function () {
|
|
117
117
|
var CONFIG = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ukhomeoffice/cop-react-form-renderer",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "rimraf dist",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"post-compile": "rimraf dist/*.test.* dist/**/*.test.* dist/**/*.stories.* dist/docs dist/assets"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@ukhomeoffice/cop-react-components": "2.
|
|
19
|
+
"@ukhomeoffice/cop-react-components": "2.2.1",
|
|
20
20
|
"axios": "^0.23.0",
|
|
21
21
|
"dayjs": "^1.11.0",
|
|
22
22
|
"govuk-frontend": "^4.3.1",
|