@ukhomeoffice/cop-react-form-renderer 3.17.1 → 3.17.2

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.
@@ -102,8 +102,8 @@ describe('utils.Component.get', function () {
102
102
  _react.fireEvent.click(checkboxItems[0].childNodes[0]); // alpha
103
103
 
104
104
 
105
- expect(ON_CHANGE_CALLS.length).toEqual(2);
106
- expect(ON_CHANGE_CALLS[1]).toMatchObject({
105
+ expect(ON_CHANGE_CALLS.length).toEqual(1);
106
+ expect(ON_CHANGE_CALLS[0]).toMatchObject({
107
107
  name: FIELD_ID,
108
108
  value: [OPTIONS[0].value]
109
109
  });
@@ -111,8 +111,8 @@ describe('utils.Component.get', function () {
111
111
  _react.fireEvent.click(checkboxItems[1].childNodes[0]); // beta
112
112
 
113
113
 
114
- expect(ON_CHANGE_CALLS.length).toEqual(3);
115
- expect(ON_CHANGE_CALLS[2]).toMatchObject({
114
+ expect(ON_CHANGE_CALLS.length).toEqual(2);
115
+ expect(ON_CHANGE_CALLS[1]).toMatchObject({
116
116
  name: FIELD_ID,
117
117
  value: [OPTIONS[0].value, OPTIONS[1].value]
118
118
  });
@@ -120,8 +120,8 @@ describe('utils.Component.get', function () {
120
120
  _react.fireEvent.click(checkboxItems[0].childNodes[0]); // alpha (unchecked this time)
121
121
 
122
122
 
123
- expect(ON_CHANGE_CALLS.length).toEqual(4);
124
- expect(ON_CHANGE_CALLS[3]).toMatchObject({
123
+ expect(ON_CHANGE_CALLS.length).toEqual(3);
124
+ expect(ON_CHANGE_CALLS[2]).toMatchObject({
125
125
  name: FIELD_ID,
126
126
  value: [OPTIONS[1].value]
127
127
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ukhomeoffice/cop-react-form-renderer",
3
- "version": "3.17.1",
3
+ "version": "3.17.2",
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": "1.12.0",
19
+ "@ukhomeoffice/cop-react-components": "1.13.1",
20
20
  "axios": "^0.23.0",
21
21
  "dayjs": "^1.11.0",
22
22
  "govuk-frontend": "^3.13.0",