stand_socotra_policy_transformer 3.0.4 → 3.0.5

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.
@@ -2,6 +2,6 @@ const { package_version } = require("../src/index");
2
2
 
3
3
  describe("Version", () => {
4
4
  test('Prints current version', () => {
5
- expect(package_version).toBe("3.0.4")
5
+ expect(package_version).toBe("3.0.5")
6
6
  });
7
7
  });
@@ -186,4 +186,17 @@ describe("Update Socotra Quote", () => {
186
186
  expect(res.error_message).toBe("")
187
187
  expect(res.status).toBe("success")
188
188
  });
189
+
190
+ test('works with additional insured fields no change', () => {
191
+ let retool_payload = load_payload('__tests__/__utils__/payloads/ai_no_change_new_payload.json')
192
+ let old_quote = load_payload('__tests__/__utils__/payloads/ai_no_change_old_payload.json')
193
+
194
+ let res = converter.retool_to_quote_updated(retool_payload, old_quote)
195
+
196
+
197
+ expect(res.payload).not.toHaveProperty("addFieldGroups")
198
+ expect(res.payload).not.toHaveProperty("removeFieldGroups")
199
+ expect(res.error_message).toBe("")
200
+ expect(res.status).toBe("success")
201
+ });
189
202
  })