@unite-us/app-create-referral 0.13.5 → 0.13.6
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/dist/AppReferrals.js +7 -7
- package/dist/AppReferrals.js.map +1 -1
- package/dist/AppReferrals.test.js +12 -12
- package/dist/AppReferrals.test.js.map +1 -1
- package/dist/__testUtils__/mockData/components/mockAppReferrals.js.map +1 -1
- package/dist/__testUtils__/mockData/mockCases.js.map +1 -1
- package/dist/__testUtils__/mockData/mockEmployees.js.map +1 -1
- package/dist/__testUtils__/mockData/mockEnums.js.map +1 -1
- package/dist/__testUtils__/mockData/mockFeeSchedulePrograms.js.map +1 -1
- package/dist/__testUtils__/mockData/mockFiles.js.map +1 -1
- package/dist/__testUtils__/mockData/mockFormSubmissions.js.map +1 -1
- package/dist/__testUtils__/mockData/mockFormUsages.js.map +1 -1
- package/dist/__testUtils__/mockData/mockForms.js.map +1 -1
- package/dist/__testUtils__/mockData/mockInsurances.js.map +1 -1
- package/dist/__testUtils__/mockData/mockNetworks.js.map +1 -1
- package/dist/__testUtils__/mockData/mockPeople.js.map +1 -1
- package/dist/__testUtils__/mockData/mockPrograms.js.map +1 -1
- package/dist/__testUtils__/mockData/mockProviders.js +0 -1
- package/dist/__testUtils__/mockData/mockProviders.js.map +1 -1
- package/dist/__testUtils__/mockData/mockReferrals.js.map +1 -1
- package/dist/__testUtils__/mockData/mockServiceAuthorizations.js.map +1 -1
- package/dist/__testUtils__/mockData/mockServices.js.map +1 -1
- package/dist/__testUtils__/mockData/mockUnlistedPrograms.js.map +1 -1
- package/dist/__testUtils__/mockData/utils.js +5 -5
- package/dist/__testUtils__/mockData/utils.js.map +1 -1
- package/dist/__testUtils__/mockServer/handlers.js.map +1 -1
- package/dist/__testUtils__/mockServer/server.js +5 -5
- package/dist/__testUtils__/mockServer/server.js.map +1 -1
- package/dist/__testUtils__/test-utils.js +5 -5
- package/dist/__testUtils__/test-utils.js.map +1 -1
- package/dist/actions/Document/Contact/Group/fetchCaseDocuments.js +4 -4
- package/dist/actions/Document/Contact/Group/fetchCaseDocuments.js.map +1 -1
- package/dist/actions/Document/Contact/Group/fetchContactDocuments.js +4 -4
- package/dist/actions/Document/Contact/Group/fetchContactDocuments.js.map +1 -1
- package/dist/actions/Document/Contact/Group/fileUploadUtils.js.map +1 -1
- package/dist/actions/Group/fetchCoreGroupForms.js +9 -9
- package/dist/actions/Group/fetchCoreGroupForms.js.map +1 -1
- package/dist/actions/Referral/cannotMoveToReferralReasons.js.map +1 -1
- package/dist/actions/Referral/fetchNetworks.js +4 -4
- package/dist/actions/Referral/fetchNetworks.js.map +1 -1
- package/dist/actions/Referral/fetchPrimaryWorkers.js +4 -4
- package/dist/actions/Referral/fetchPrimaryWorkers.js.map +1 -1
- package/dist/actions/Referral/removeReferralProgram.js +3 -3
- package/dist/actions/Referral/removeReferralProgram.js.map +1 -1
- package/dist/api/ApiHooks.js +5 -5
- package/dist/api/ApiHooks.js.map +1 -1
- package/dist/api/config.js +3 -3
- package/dist/api/config.js.map +1 -1
- package/dist/common/form/CurrencyField/index.js +1 -1
- package/dist/common/form/CurrencyField/index.js.map +1 -1
- package/dist/common/form/DocumentUploader/components/ContactDocumentsSelector.js +7 -7
- package/dist/common/form/DocumentUploader/components/ContactDocumentsSelector.js.map +1 -1
- package/dist/common/form/DocumentUploader/components/DocumentsListView.js.map +1 -1
- package/dist/common/form/DocumentUploader/components/ListViewDocument.js.map +1 -1
- package/dist/common/form/ErrorMessage/index.js.map +1 -1
- package/dist/common/form/FileUploadV2/FileUpload.js +9 -9
- package/dist/common/form/FileUploadV2/FileUpload.js.map +1 -1
- package/dist/common/form/FileUploadV2/components/FilePreview.js.map +1 -1
- package/dist/common/form/FileUploadV2/components/FilePreviewWrapper.js.map +1 -1
- package/dist/common/form/FormForm/index.js +11 -11
- package/dist/common/form/FormForm/index.js.map +1 -1
- package/dist/common/utils/utils.js.map +1 -1
- package/dist/components/Card.js.map +1 -1
- package/dist/components/CreateReferralContainer.js.map +1 -1
- package/dist/components/DollarAmount.js.map +1 -1
- package/dist/components/ExpandableButton.js.map +1 -1
- package/dist/components/NavButtons.js.map +1 -1
- package/dist/components/ReferralStepper.js.map +1 -1
- package/dist/components/StepHeader.js.map +1 -1
- package/dist/components/Stepper.js.map +1 -1
- package/dist/components/modal/Dialog.js +22 -24
- package/dist/components/modal/Dialog.js.map +1 -1
- package/dist/components/modal/Overlay.js +0 -1
- package/dist/components/modal/Overlay.js.map +1 -1
- package/dist/components/service_authorization/AuthorizationSpendCard.js.map +1 -1
- package/dist/components/service_authorization/CapsInfo.js.map +1 -1
- package/dist/components/service_authorization/CaseStatus.js.map +1 -1
- package/dist/components/service_authorization/PreviousAuthorizationRequestsDetails.js.map +1 -1
- package/dist/components/service_authorization/ReferralAuthSpendExpandable.js +4 -4
- package/dist/components/service_authorization/ReferralAuthSpendExpandable.js.map +1 -1
- package/dist/components/service_authorization/ReferralAuthorizationRequestSummary.js.map +1 -1
- package/dist/components/service_authorization/Spend.js.map +1 -1
- package/dist/components/service_authorization/formatShortDate.js.map +1 -1
- package/dist/components/service_authorization/messageConstants.js.map +1 -1
- package/dist/components/spinners/OverlaySpinner/OverlaySpinner.js.map +1 -1
- package/dist/components/spinners/OverlaySpinner/index.js.map +1 -1
- package/dist/components/spinners/Spinner/Spinner.js.map +1 -1
- package/dist/components/spinners/Spinner/index.js.map +1 -1
- package/dist/constants/callOrLog.js.map +1 -1
- package/dist/constants/enums.js.map +1 -1
- package/dist/constants/eventConstants.js.map +1 -1
- package/dist/constants/findEnumDisplayName.js.map +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/context/AppCreateReferralProvider.js +7 -7
- package/dist/context/AppCreateReferralProvider.js.map +1 -1
- package/dist/context/state.js +3 -3
- package/dist/context/state.js.map +1 -1
- package/dist/context/withAppCreateReferralContext.js +1 -1
- package/dist/context/withAppCreateReferralContext.js.map +1 -1
- package/dist/hooks/useCreateReferrals.js +18 -18
- package/dist/hooks/useCreateReferrals.js.map +1 -1
- package/dist/hooks/useCreateShareEvent.js +4 -4
- package/dist/hooks/useCreateShareEvent.js.map +1 -1
- package/dist/hooks/usePerson.js +4 -4
- package/dist/hooks/usePerson.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/pages/builder/AboutGroupedReferralsModal.js.map +1 -1
- package/dist/pages/builder/AuthorizationSubform.js +1 -1
- package/dist/pages/builder/AuthorizationSubform.js.map +1 -1
- package/dist/pages/builder/ChooseOneServiceTypeModal.js.map +1 -1
- package/dist/pages/builder/LineItem.js.map +1 -1
- package/dist/pages/builder/NoReferralsDisplay.js.map +1 -1
- package/dist/pages/builder/ReferralBuilder.js +14 -14
- package/dist/pages/builder/ReferralBuilder.js.map +1 -1
- package/dist/pages/builder/ReferralBuilderForm.js +16 -16
- package/dist/pages/builder/ReferralBuilderForm.js.map +1 -1
- package/dist/pages/builder/ReferralCard.js.map +1 -1
- package/dist/pages/builder/ReferralProgramCard.js +4 -4
- package/dist/pages/builder/ReferralProgramCard.js.map +1 -1
- package/dist/pages/builder/ReferralProgramMenu.js +4 -4
- package/dist/pages/builder/ReferralProgramMenu.js.map +1 -1
- package/dist/pages/builder/__tests__/AuthorizationRequiredPrograms.test.js +12 -12
- package/dist/pages/builder/__tests__/AuthorizationRequiredPrograms.test.js.map +1 -1
- package/dist/pages/builder/__tests__/NonSensitiveGroupedPrograms.test.js +80 -80
- package/dist/pages/builder/__tests__/NonSensitiveGroupedPrograms.test.js.map +1 -1
- package/dist/pages/builder/__tests__/NonSensitiveSingleProgram.test.js +34 -34
- package/dist/pages/builder/__tests__/NonSensitiveSingleProgram.test.js.map +1 -1
- package/dist/pages/builder/__tests__/ReferralBuilder.test.js +6 -6
- package/dist/pages/builder/__tests__/ReferralBuilder.test.js.map +1 -1
- package/dist/pages/builder/__tests__/SensitiveProviderGroupedPrograms.test.js +48 -48
- package/dist/pages/builder/__tests__/SensitiveProviderGroupedPrograms.test.js.map +1 -1
- package/dist/pages/builder/__tests__/SensitiveServiceGroupedPrograms.test.js +16 -16
- package/dist/pages/builder/__tests__/SensitiveServiceGroupedPrograms.test.js.map +1 -1
- package/dist/pages/builder/__tests__/SensitiveServiceSensitiveProviderGroupedPrograms.test.js +31 -31
- package/dist/pages/builder/__tests__/SensitiveServiceSensitiveProviderGroupedPrograms.test.js.map +1 -1
- package/dist/pages/builder/__tests__/SensitiveSingleProgram.test.js +30 -30
- package/dist/pages/builder/__tests__/SensitiveSingleProgram.test.js.map +1 -1
- package/dist/pages/builder/buildDraftState.js.map +1 -1
- package/dist/pages/builder/buildGroupedReferrals.js +8 -8
- package/dist/pages/builder/buildGroupedReferrals.js.map +1 -1
- package/dist/pages/builder/clearDraftState.js.map +1 -1
- package/dist/pages/builder/constants.js.map +1 -1
- package/dist/pages/builder/useBuildReferrals.js +10 -10
- package/dist/pages/builder/useBuildReferrals.js.map +1 -1
- package/dist/pages/builder/utils.js +3 -3
- package/dist/pages/builder/utils.js.map +1 -1
- package/dist/pages/review/DeleteReferralModal.js.map +1 -1
- package/dist/pages/review/ReferralsSent.js +18 -11
- package/dist/pages/review/ReferralsSent.js.map +1 -1
- package/dist/pages/review/Review.js +16 -16
- package/dist/pages/review/Review.js.map +1 -1
- package/dist/pages/review/__tests__/Review.test.js +33 -34
- package/dist/pages/review/__tests__/Review.test.js.map +1 -1
- package/dist/pages/review/__tests__/data.js.map +1 -1
- package/dist/pages/review/constants.js.map +1 -1
- package/dist/pages/supporting-info/SupportingInfo.js +11 -11
- package/dist/pages/supporting-info/SupportingInfo.js.map +1 -1
- package/dist/pages/supporting-info/__tests__/SupportingInfo.test.js +5 -5
- package/dist/pages/supporting-info/__tests__/SupportingInfo.test.js.map +1 -1
- package/dist/pages/supporting-info/__tests__/data.js.map +1 -1
- package/dist/reportWebVitals.js.map +1 -1
- package/dist/setupTests.js.map +1 -1
- package/dist/utils/__tests__/checkRoles.test.js.map +1 -1
- package/dist/utils/canAccept.js.map +1 -1
- package/dist/utils/checkRoles.js.map +1 -1
- package/dist/utils/hasUserRole.js.map +1 -1
- package/dist/utils/isReferralForwarded.js.map +1 -1
- package/dist/utils/useDebounce.js +4 -4
- package/dist/utils/useDebounce.js.map +1 -1
- package/dist/utils/useFeatureFlag.js.map +1 -1
- package/dist/utils/usePreventWheel.js.map +1 -1
- package/dist/utils/validateCostAmount.js.map +1 -1
- package/dist/utils/validateUnitAmount.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw
|
|
3
|
-
function asyncGeneratorStep(
|
|
4
|
-
function _asyncToGenerator(
|
|
2
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
4
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
5
5
|
import { screen, fireEvent } from "@testing-library/react";
|
|
6
6
|
import { render, act } from "../../../__testUtils__/test-utils";
|
|
7
7
|
import { person } from "../../../__testUtils__/mockData/mockPeople";
|
|
@@ -21,7 +21,7 @@ describe('ReferralBuilder', function () {
|
|
|
21
21
|
describe('receiving programs in licensed provider', function () {
|
|
22
22
|
describe('provider_type: provider', function () {
|
|
23
23
|
describe('on-platform programs', function () {
|
|
24
|
-
it('should not group programs', /*#__PURE__*/_asyncToGenerator(
|
|
24
|
+
it('should not group programs', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
25
25
|
var filteredPrograms;
|
|
26
26
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
27
27
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -45,11 +45,11 @@ describe('ReferralBuilder', function () {
|
|
|
45
45
|
break;
|
|
46
46
|
}
|
|
47
47
|
_context2.next = 4;
|
|
48
|
-
return act(
|
|
48
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
49
49
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
50
50
|
while (1) switch (_context.prev = _context.next) {
|
|
51
51
|
case 0:
|
|
52
|
-
return _context.abrupt("return", render(
|
|
52
|
+
return _context.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
53
53
|
appContextProviderProps: {
|
|
54
54
|
person: person,
|
|
55
55
|
selectedPrograms: filteredPrograms,
|
|
@@ -78,7 +78,7 @@ describe('ReferralBuilder', function () {
|
|
|
78
78
|
})));
|
|
79
79
|
});
|
|
80
80
|
describe('off-platform programs', function () {
|
|
81
|
-
it('should not group programs', /*#__PURE__*/_asyncToGenerator(
|
|
81
|
+
it('should not group programs', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
82
82
|
var filteredPrograms;
|
|
83
83
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
84
84
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -102,11 +102,11 @@ describe('ReferralBuilder', function () {
|
|
|
102
102
|
break;
|
|
103
103
|
}
|
|
104
104
|
_context4.next = 4;
|
|
105
|
-
return act(
|
|
105
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
106
106
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
107
107
|
while (1) switch (_context3.prev = _context3.next) {
|
|
108
108
|
case 0:
|
|
109
|
-
return _context3.abrupt("return", render(
|
|
109
|
+
return _context3.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
110
110
|
appContextProviderProps: {
|
|
111
111
|
person: person,
|
|
112
112
|
selectedPrograms: filteredPrograms,
|
|
@@ -137,7 +137,7 @@ describe('ReferralBuilder', function () {
|
|
|
137
137
|
})));
|
|
138
138
|
});
|
|
139
139
|
describe('one on-platform program, one off-platform program', function () {
|
|
140
|
-
it('should not group programs', /*#__PURE__*/_asyncToGenerator(
|
|
140
|
+
it('should not group programs', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
141
141
|
var filteredPrograms;
|
|
142
142
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
143
143
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -162,11 +162,11 @@ describe('ReferralBuilder', function () {
|
|
|
162
162
|
break;
|
|
163
163
|
}
|
|
164
164
|
_context6.next = 4;
|
|
165
|
-
return act(
|
|
165
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
166
166
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
167
167
|
while (1) switch (_context5.prev = _context5.next) {
|
|
168
168
|
case 0:
|
|
169
|
-
return _context5.abrupt("return", render(
|
|
169
|
+
return _context5.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
170
170
|
appContextProviderProps: {
|
|
171
171
|
person: person,
|
|
172
172
|
selectedPrograms: filteredPrograms,
|
|
@@ -199,7 +199,7 @@ describe('ReferralBuilder', function () {
|
|
|
199
199
|
});
|
|
200
200
|
describe('provider_type: coordination_center', function () {
|
|
201
201
|
describe('on-platform programs', function () {
|
|
202
|
-
it('should not group programs', /*#__PURE__*/_asyncToGenerator(
|
|
202
|
+
it('should not group programs', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
|
|
203
203
|
var filteredPrograms;
|
|
204
204
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
205
205
|
while (1) switch (_context8.prev = _context8.next) {
|
|
@@ -223,11 +223,11 @@ describe('ReferralBuilder', function () {
|
|
|
223
223
|
break;
|
|
224
224
|
}
|
|
225
225
|
_context8.next = 4;
|
|
226
|
-
return act(
|
|
226
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
227
227
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
228
228
|
while (1) switch (_context7.prev = _context7.next) {
|
|
229
229
|
case 0:
|
|
230
|
-
return _context7.abrupt("return", render(
|
|
230
|
+
return _context7.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
231
231
|
appContextProviderProps: {
|
|
232
232
|
person: person,
|
|
233
233
|
selectedPrograms: filteredPrograms,
|
|
@@ -256,7 +256,7 @@ describe('ReferralBuilder', function () {
|
|
|
256
256
|
})));
|
|
257
257
|
});
|
|
258
258
|
describe('off-platform programs', function () {
|
|
259
|
-
it('should not group programs', /*#__PURE__*/_asyncToGenerator(
|
|
259
|
+
it('should not group programs', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
|
|
260
260
|
var filteredPrograms;
|
|
261
261
|
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
262
262
|
while (1) switch (_context10.prev = _context10.next) {
|
|
@@ -280,11 +280,11 @@ describe('ReferralBuilder', function () {
|
|
|
280
280
|
break;
|
|
281
281
|
}
|
|
282
282
|
_context10.next = 4;
|
|
283
|
-
return act(
|
|
283
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
|
284
284
|
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
285
285
|
while (1) switch (_context9.prev = _context9.next) {
|
|
286
286
|
case 0:
|
|
287
|
-
return _context9.abrupt("return", render(
|
|
287
|
+
return _context9.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
288
288
|
appContextProviderProps: {
|
|
289
289
|
person: person,
|
|
290
290
|
selectedPrograms: filteredPrograms,
|
|
@@ -315,7 +315,7 @@ describe('ReferralBuilder', function () {
|
|
|
315
315
|
})));
|
|
316
316
|
});
|
|
317
317
|
describe('one on-platform program, one off-platform program', function () {
|
|
318
|
-
it('should not group programs', /*#__PURE__*/_asyncToGenerator(
|
|
318
|
+
it('should not group programs', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
|
|
319
319
|
var filteredPrograms;
|
|
320
320
|
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
321
321
|
while (1) switch (_context13.prev = _context13.next) {
|
|
@@ -339,11 +339,11 @@ describe('ReferralBuilder', function () {
|
|
|
339
339
|
break;
|
|
340
340
|
}
|
|
341
341
|
_context13.next = 4;
|
|
342
|
-
return act(
|
|
342
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
|
|
343
343
|
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
344
344
|
while (1) switch (_context11.prev = _context11.next) {
|
|
345
345
|
case 0:
|
|
346
|
-
return _context11.abrupt("return", render(
|
|
346
|
+
return _context11.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
347
347
|
appContextProviderProps: {
|
|
348
348
|
person: person,
|
|
349
349
|
selectedPrograms: filteredPrograms,
|
|
@@ -363,7 +363,7 @@ describe('ReferralBuilder', function () {
|
|
|
363
363
|
expect(screen.getByText(/Prepare Your Referrals/i)).toBeInTheDocument();
|
|
364
364
|
expect(screen.getByText(/Referral 1: Benefits Eligibility Screening/i)).toBeInTheDocument();
|
|
365
365
|
_context13.next = 8;
|
|
366
|
-
return act(
|
|
366
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12() {
|
|
367
367
|
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
368
368
|
while (1) switch (_context12.prev = _context12.next) {
|
|
369
369
|
case 0:
|
|
@@ -388,7 +388,7 @@ describe('ReferralBuilder', function () {
|
|
|
388
388
|
});
|
|
389
389
|
});
|
|
390
390
|
describe('off-platform receiving programs in unlicensed providers, provider_type: provider', function () {
|
|
391
|
-
it('should not group programs', /*#__PURE__*/_asyncToGenerator(
|
|
391
|
+
it('should not group programs', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee16() {
|
|
392
392
|
var filteredPrograms;
|
|
393
393
|
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
394
394
|
while (1) switch (_context16.prev = _context16.next) {
|
|
@@ -413,11 +413,11 @@ describe('ReferralBuilder', function () {
|
|
|
413
413
|
break;
|
|
414
414
|
}
|
|
415
415
|
_context16.next = 4;
|
|
416
|
-
return act(
|
|
416
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14() {
|
|
417
417
|
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
418
418
|
while (1) switch (_context14.prev = _context14.next) {
|
|
419
419
|
case 0:
|
|
420
|
-
return _context14.abrupt("return", render(
|
|
420
|
+
return _context14.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
421
421
|
appContextProviderProps: {
|
|
422
422
|
person: person,
|
|
423
423
|
selectedPrograms: filteredPrograms,
|
|
@@ -437,7 +437,7 @@ describe('ReferralBuilder', function () {
|
|
|
437
437
|
expect(screen.getByText(/Prepare Your Referrals/i)).toBeInTheDocument();
|
|
438
438
|
expect(screen.getByText(/Referral 1: Benefits Eligibility Screening/i)).toBeInTheDocument();
|
|
439
439
|
_context16.next = 8;
|
|
440
|
-
return act(
|
|
440
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15() {
|
|
441
441
|
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
442
442
|
while (1) switch (_context15.prev = _context15.next) {
|
|
443
443
|
case 0:
|
|
@@ -464,7 +464,7 @@ describe('ReferralBuilder', function () {
|
|
|
464
464
|
describe('receiving programs in licensed providers', function () {
|
|
465
465
|
describe('provider_type: provider', function () {
|
|
466
466
|
describe('on-platform programs', function () {
|
|
467
|
-
it('should group programs', /*#__PURE__*/_asyncToGenerator(
|
|
467
|
+
it('should group programs', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
|
|
468
468
|
var filteredPrograms;
|
|
469
469
|
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
470
470
|
while (1) switch (_context18.prev = _context18.next) {
|
|
@@ -489,11 +489,11 @@ describe('ReferralBuilder', function () {
|
|
|
489
489
|
break;
|
|
490
490
|
}
|
|
491
491
|
_context18.next = 4;
|
|
492
|
-
return act(
|
|
492
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17() {
|
|
493
493
|
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
494
494
|
while (1) switch (_context17.prev = _context17.next) {
|
|
495
495
|
case 0:
|
|
496
|
-
return _context17.abrupt("return", render(
|
|
496
|
+
return _context17.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
497
497
|
appContextProviderProps: {
|
|
498
498
|
person: person,
|
|
499
499
|
selectedPrograms: filteredPrograms,
|
|
@@ -521,7 +521,7 @@ describe('ReferralBuilder', function () {
|
|
|
521
521
|
})));
|
|
522
522
|
});
|
|
523
523
|
describe('off-platform programs', function () {
|
|
524
|
-
it('should group programs', /*#__PURE__*/_asyncToGenerator(
|
|
524
|
+
it('should group programs', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee20() {
|
|
525
525
|
var filteredPrograms;
|
|
526
526
|
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
527
527
|
while (1) switch (_context20.prev = _context20.next) {
|
|
@@ -546,11 +546,11 @@ describe('ReferralBuilder', function () {
|
|
|
546
546
|
break;
|
|
547
547
|
}
|
|
548
548
|
_context20.next = 4;
|
|
549
|
-
return act(
|
|
549
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee19() {
|
|
550
550
|
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
551
551
|
while (1) switch (_context19.prev = _context19.next) {
|
|
552
552
|
case 0:
|
|
553
|
-
return _context19.abrupt("return", render(
|
|
553
|
+
return _context19.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
554
554
|
appContextProviderProps: {
|
|
555
555
|
person: person,
|
|
556
556
|
selectedPrograms: filteredPrograms,
|
|
@@ -578,7 +578,7 @@ describe('ReferralBuilder', function () {
|
|
|
578
578
|
})));
|
|
579
579
|
});
|
|
580
580
|
describe('one on-platform program, one off-platform program', function () {
|
|
581
|
-
it('should not group programs', /*#__PURE__*/_asyncToGenerator(
|
|
581
|
+
it('should not group programs', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee23() {
|
|
582
582
|
var filteredPrograms;
|
|
583
583
|
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
|
584
584
|
while (1) switch (_context23.prev = _context23.next) {
|
|
@@ -602,11 +602,11 @@ describe('ReferralBuilder', function () {
|
|
|
602
602
|
break;
|
|
603
603
|
}
|
|
604
604
|
_context23.next = 4;
|
|
605
|
-
return act(
|
|
605
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
|
|
606
606
|
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
|
607
607
|
while (1) switch (_context21.prev = _context21.next) {
|
|
608
608
|
case 0:
|
|
609
|
-
return _context21.abrupt("return", render(
|
|
609
|
+
return _context21.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
610
610
|
appContextProviderProps: {
|
|
611
611
|
person: person,
|
|
612
612
|
selectedPrograms: filteredPrograms,
|
|
@@ -626,7 +626,7 @@ describe('ReferralBuilder', function () {
|
|
|
626
626
|
expect(screen.getByText(/Prepare Your Referrals/i)).toBeInTheDocument();
|
|
627
627
|
expect(screen.getByText(/Referral 1: Benefits Eligibility Screening/i)).toBeInTheDocument();
|
|
628
628
|
_context23.next = 8;
|
|
629
|
-
return act(
|
|
629
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee22() {
|
|
630
630
|
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
|
631
631
|
while (1) switch (_context22.prev = _context22.next) {
|
|
632
632
|
case 0:
|
|
@@ -651,7 +651,7 @@ describe('ReferralBuilder', function () {
|
|
|
651
651
|
});
|
|
652
652
|
describe('provider_type: coordination_center', function () {
|
|
653
653
|
describe('on-platform programs', function () {
|
|
654
|
-
it('should not group programs', /*#__PURE__*/_asyncToGenerator(
|
|
654
|
+
it('should not group programs', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee26() {
|
|
655
655
|
var filteredPrograms;
|
|
656
656
|
return _regeneratorRuntime().wrap(function _callee26$(_context26) {
|
|
657
657
|
while (1) switch (_context26.prev = _context26.next) {
|
|
@@ -675,11 +675,11 @@ describe('ReferralBuilder', function () {
|
|
|
675
675
|
break;
|
|
676
676
|
}
|
|
677
677
|
_context26.next = 4;
|
|
678
|
-
return act(
|
|
678
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee24() {
|
|
679
679
|
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
|
680
680
|
while (1) switch (_context24.prev = _context24.next) {
|
|
681
681
|
case 0:
|
|
682
|
-
return _context24.abrupt("return", render(
|
|
682
|
+
return _context24.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
683
683
|
appContextProviderProps: {
|
|
684
684
|
person: person,
|
|
685
685
|
selectedPrograms: filteredPrograms,
|
|
@@ -699,7 +699,7 @@ describe('ReferralBuilder', function () {
|
|
|
699
699
|
expect(screen.getByText(/Prepare Your Referrals/i)).toBeInTheDocument();
|
|
700
700
|
expect(screen.getByText(/Referral 1: Benefits Eligibility Screening/i)).toBeInTheDocument();
|
|
701
701
|
_context26.next = 8;
|
|
702
|
-
return act(
|
|
702
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee25() {
|
|
703
703
|
return _regeneratorRuntime().wrap(function _callee25$(_context25) {
|
|
704
704
|
while (1) switch (_context25.prev = _context25.next) {
|
|
705
705
|
case 0:
|
|
@@ -722,7 +722,7 @@ describe('ReferralBuilder', function () {
|
|
|
722
722
|
})));
|
|
723
723
|
});
|
|
724
724
|
describe('off-platform programs', function () {
|
|
725
|
-
it('should not group programs', /*#__PURE__*/_asyncToGenerator(
|
|
725
|
+
it('should not group programs', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee29() {
|
|
726
726
|
var filteredPrograms;
|
|
727
727
|
return _regeneratorRuntime().wrap(function _callee29$(_context29) {
|
|
728
728
|
while (1) switch (_context29.prev = _context29.next) {
|
|
@@ -746,11 +746,11 @@ describe('ReferralBuilder', function () {
|
|
|
746
746
|
break;
|
|
747
747
|
}
|
|
748
748
|
_context29.next = 4;
|
|
749
|
-
return act(
|
|
749
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee27() {
|
|
750
750
|
return _regeneratorRuntime().wrap(function _callee27$(_context27) {
|
|
751
751
|
while (1) switch (_context27.prev = _context27.next) {
|
|
752
752
|
case 0:
|
|
753
|
-
return _context27.abrupt("return", render(
|
|
753
|
+
return _context27.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
754
754
|
appContextProviderProps: {
|
|
755
755
|
person: person,
|
|
756
756
|
selectedPrograms: filteredPrograms,
|
|
@@ -770,7 +770,7 @@ describe('ReferralBuilder', function () {
|
|
|
770
770
|
expect(screen.getByText(/Prepare Your Referrals/i)).toBeInTheDocument();
|
|
771
771
|
expect(screen.getByText(/Referral 1: Benefits Eligibility Screening/i)).toBeInTheDocument();
|
|
772
772
|
_context29.next = 8;
|
|
773
|
-
return act(
|
|
773
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee28() {
|
|
774
774
|
return _regeneratorRuntime().wrap(function _callee28$(_context28) {
|
|
775
775
|
while (1) switch (_context28.prev = _context28.next) {
|
|
776
776
|
case 0:
|
|
@@ -793,7 +793,7 @@ describe('ReferralBuilder', function () {
|
|
|
793
793
|
})));
|
|
794
794
|
});
|
|
795
795
|
describe('one on-platform program, one off-platform program', function () {
|
|
796
|
-
it('should not group programs', /*#__PURE__*/_asyncToGenerator(
|
|
796
|
+
it('should not group programs', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee32() {
|
|
797
797
|
var filteredPrograms;
|
|
798
798
|
return _regeneratorRuntime().wrap(function _callee32$(_context32) {
|
|
799
799
|
while (1) switch (_context32.prev = _context32.next) {
|
|
@@ -817,11 +817,11 @@ describe('ReferralBuilder', function () {
|
|
|
817
817
|
break;
|
|
818
818
|
}
|
|
819
819
|
_context32.next = 4;
|
|
820
|
-
return act(
|
|
820
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee30() {
|
|
821
821
|
return _regeneratorRuntime().wrap(function _callee30$(_context30) {
|
|
822
822
|
while (1) switch (_context30.prev = _context30.next) {
|
|
823
823
|
case 0:
|
|
824
|
-
return _context30.abrupt("return", render(
|
|
824
|
+
return _context30.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
825
825
|
appContextProviderProps: {
|
|
826
826
|
person: person,
|
|
827
827
|
selectedPrograms: filteredPrograms,
|
|
@@ -841,7 +841,7 @@ describe('ReferralBuilder', function () {
|
|
|
841
841
|
expect(screen.getByText(/Prepare Your Referrals/i)).toBeInTheDocument();
|
|
842
842
|
expect(screen.getByText(/Referral 1: Benefits Eligibility Screening/i)).toBeInTheDocument();
|
|
843
843
|
_context32.next = 8;
|
|
844
|
-
return act(
|
|
844
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee31() {
|
|
845
845
|
return _regeneratorRuntime().wrap(function _callee31$(_context31) {
|
|
846
846
|
while (1) switch (_context31.prev = _context31.next) {
|
|
847
847
|
case 0:
|
|
@@ -866,7 +866,7 @@ describe('ReferralBuilder', function () {
|
|
|
866
866
|
});
|
|
867
867
|
describe('one provider_type: provider, one provider_type: coordination_center', function () {
|
|
868
868
|
describe('on-platform programs', function () {
|
|
869
|
-
it('should not group programs', /*#__PURE__*/_asyncToGenerator(
|
|
869
|
+
it('should not group programs', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee35() {
|
|
870
870
|
var filteredPrograms;
|
|
871
871
|
return _regeneratorRuntime().wrap(function _callee35$(_context35) {
|
|
872
872
|
while (1) switch (_context35.prev = _context35.next) {
|
|
@@ -890,11 +890,11 @@ describe('ReferralBuilder', function () {
|
|
|
890
890
|
break;
|
|
891
891
|
}
|
|
892
892
|
_context35.next = 4;
|
|
893
|
-
return act(
|
|
893
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee33() {
|
|
894
894
|
return _regeneratorRuntime().wrap(function _callee33$(_context33) {
|
|
895
895
|
while (1) switch (_context33.prev = _context33.next) {
|
|
896
896
|
case 0:
|
|
897
|
-
return _context33.abrupt("return", render(
|
|
897
|
+
return _context33.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
898
898
|
appContextProviderProps: {
|
|
899
899
|
person: person,
|
|
900
900
|
selectedPrograms: filteredPrograms,
|
|
@@ -914,7 +914,7 @@ describe('ReferralBuilder', function () {
|
|
|
914
914
|
expect(screen.getByText(/Prepare Your Referrals/i)).toBeInTheDocument();
|
|
915
915
|
expect(screen.getByText(/Referral 1: Benefits Eligibility Screening/i)).toBeInTheDocument();
|
|
916
916
|
_context35.next = 8;
|
|
917
|
-
return act(
|
|
917
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee34() {
|
|
918
918
|
return _regeneratorRuntime().wrap(function _callee34$(_context34) {
|
|
919
919
|
while (1) switch (_context34.prev = _context34.next) {
|
|
920
920
|
case 0:
|
|
@@ -939,7 +939,7 @@ describe('ReferralBuilder', function () {
|
|
|
939
939
|
});
|
|
940
940
|
});
|
|
941
941
|
describe('receiving programs in unlicensed providers, provider_type: provider, off-platform programs', function () {
|
|
942
|
-
it('should group programs', /*#__PURE__*/_asyncToGenerator(
|
|
942
|
+
it('should group programs', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee37() {
|
|
943
943
|
var filteredPrograms;
|
|
944
944
|
return _regeneratorRuntime().wrap(function _callee37$(_context37) {
|
|
945
945
|
while (1) switch (_context37.prev = _context37.next) {
|
|
@@ -963,11 +963,11 @@ describe('ReferralBuilder', function () {
|
|
|
963
963
|
break;
|
|
964
964
|
}
|
|
965
965
|
_context37.next = 4;
|
|
966
|
-
return act(
|
|
966
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee36() {
|
|
967
967
|
return _regeneratorRuntime().wrap(function _callee36$(_context36) {
|
|
968
968
|
while (1) switch (_context36.prev = _context36.next) {
|
|
969
969
|
case 0:
|
|
970
|
-
return _context36.abrupt("return", render(
|
|
970
|
+
return _context36.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
971
971
|
appContextProviderProps: {
|
|
972
972
|
person: person,
|
|
973
973
|
selectedPrograms: filteredPrograms,
|
|
@@ -997,7 +997,7 @@ describe('ReferralBuilder', function () {
|
|
|
997
997
|
describe('one receiving program in licensed provider, one receiving program in unlicensed provider', function () {
|
|
998
998
|
describe('both provider_types: provider', function () {
|
|
999
999
|
describe('off-platform programs', function () {
|
|
1000
|
-
it('should not group programs', /*#__PURE__*/_asyncToGenerator(
|
|
1000
|
+
it('should not group programs', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee39() {
|
|
1001
1001
|
var filteredPrograms;
|
|
1002
1002
|
return _regeneratorRuntime().wrap(function _callee39$(_context39) {
|
|
1003
1003
|
while (1) switch (_context39.prev = _context39.next) {
|
|
@@ -1021,11 +1021,11 @@ describe('ReferralBuilder', function () {
|
|
|
1021
1021
|
break;
|
|
1022
1022
|
}
|
|
1023
1023
|
_context39.next = 4;
|
|
1024
|
-
return act(
|
|
1024
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee38() {
|
|
1025
1025
|
return _regeneratorRuntime().wrap(function _callee38$(_context38) {
|
|
1026
1026
|
while (1) switch (_context38.prev = _context38.next) {
|
|
1027
1027
|
case 0:
|
|
1028
|
-
return _context38.abrupt("return", render(
|
|
1028
|
+
return _context38.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
1029
1029
|
appContextProviderProps: {
|
|
1030
1030
|
person: person,
|
|
1031
1031
|
selectedPrograms: filteredPrograms,
|
|
@@ -1053,7 +1053,7 @@ describe('ReferralBuilder', function () {
|
|
|
1053
1053
|
})));
|
|
1054
1054
|
});
|
|
1055
1055
|
describe('one off-platform program, one on-platform program', function () {
|
|
1056
|
-
it('should not group programs', /*#__PURE__*/_asyncToGenerator(
|
|
1056
|
+
it('should not group programs', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee42() {
|
|
1057
1057
|
var filteredPrograms;
|
|
1058
1058
|
return _regeneratorRuntime().wrap(function _callee42$(_context42) {
|
|
1059
1059
|
while (1) switch (_context42.prev = _context42.next) {
|
|
@@ -1077,11 +1077,11 @@ describe('ReferralBuilder', function () {
|
|
|
1077
1077
|
break;
|
|
1078
1078
|
}
|
|
1079
1079
|
_context42.next = 4;
|
|
1080
|
-
return act(
|
|
1080
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee40() {
|
|
1081
1081
|
return _regeneratorRuntime().wrap(function _callee40$(_context40) {
|
|
1082
1082
|
while (1) switch (_context40.prev = _context40.next) {
|
|
1083
1083
|
case 0:
|
|
1084
|
-
return _context40.abrupt("return", render(
|
|
1084
|
+
return _context40.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
1085
1085
|
appContextProviderProps: {
|
|
1086
1086
|
person: person,
|
|
1087
1087
|
selectedPrograms: filteredPrograms,
|
|
@@ -1101,7 +1101,7 @@ describe('ReferralBuilder', function () {
|
|
|
1101
1101
|
expect(screen.getByText(/Prepare Your Referrals/i)).toBeInTheDocument();
|
|
1102
1102
|
expect(screen.getByText(/Referral 1: Benefits Eligibility Screening/i)).toBeInTheDocument();
|
|
1103
1103
|
_context42.next = 8;
|
|
1104
|
-
return act(
|
|
1104
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee41() {
|
|
1105
1105
|
return _regeneratorRuntime().wrap(function _callee41$(_context41) {
|
|
1106
1106
|
while (1) switch (_context41.prev = _context41.next) {
|
|
1107
1107
|
case 0:
|
|
@@ -1126,7 +1126,7 @@ describe('ReferralBuilder', function () {
|
|
|
1126
1126
|
});
|
|
1127
1127
|
describe('unlicensed provider_type: provider, licensed provider_type: coordination_center', function () {
|
|
1128
1128
|
describe('off-platform programs', function () {
|
|
1129
|
-
it('should not group programs', /*#__PURE__*/_asyncToGenerator(
|
|
1129
|
+
it('should not group programs', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee45() {
|
|
1130
1130
|
var filteredPrograms;
|
|
1131
1131
|
return _regeneratorRuntime().wrap(function _callee45$(_context45) {
|
|
1132
1132
|
while (1) switch (_context45.prev = _context45.next) {
|
|
@@ -1151,11 +1151,11 @@ describe('ReferralBuilder', function () {
|
|
|
1151
1151
|
break;
|
|
1152
1152
|
}
|
|
1153
1153
|
_context45.next = 4;
|
|
1154
|
-
return act(
|
|
1154
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee43() {
|
|
1155
1155
|
return _regeneratorRuntime().wrap(function _callee43$(_context43) {
|
|
1156
1156
|
while (1) switch (_context43.prev = _context43.next) {
|
|
1157
1157
|
case 0:
|
|
1158
|
-
return _context43.abrupt("return", render(
|
|
1158
|
+
return _context43.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
1159
1159
|
appContextProviderProps: {
|
|
1160
1160
|
person: person,
|
|
1161
1161
|
selectedPrograms: filteredPrograms,
|
|
@@ -1175,7 +1175,7 @@ describe('ReferralBuilder', function () {
|
|
|
1175
1175
|
expect(screen.getByText(/Prepare Your Referrals/i)).toBeInTheDocument();
|
|
1176
1176
|
expect(screen.getByText(/Referral 1: Benefits Eligibility Screening/i)).toBeInTheDocument();
|
|
1177
1177
|
_context45.next = 8;
|
|
1178
|
-
return act(
|
|
1178
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee44() {
|
|
1179
1179
|
return _regeneratorRuntime().wrap(function _callee44$(_context44) {
|
|
1180
1180
|
while (1) switch (_context44.prev = _context44.next) {
|
|
1181
1181
|
case 0:
|
|
@@ -1198,7 +1198,7 @@ describe('ReferralBuilder', function () {
|
|
|
1198
1198
|
})));
|
|
1199
1199
|
});
|
|
1200
1200
|
describe('one off-platform program, one on-platform program', function () {
|
|
1201
|
-
it('should not group programs', /*#__PURE__*/_asyncToGenerator(
|
|
1201
|
+
it('should not group programs', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee48() {
|
|
1202
1202
|
var filteredPrograms;
|
|
1203
1203
|
return _regeneratorRuntime().wrap(function _callee48$(_context48) {
|
|
1204
1204
|
while (1) switch (_context48.prev = _context48.next) {
|
|
@@ -1224,11 +1224,11 @@ describe('ReferralBuilder', function () {
|
|
|
1224
1224
|
break;
|
|
1225
1225
|
}
|
|
1226
1226
|
_context48.next = 4;
|
|
1227
|
-
return act(
|
|
1227
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee46() {
|
|
1228
1228
|
return _regeneratorRuntime().wrap(function _callee46$(_context46) {
|
|
1229
1229
|
while (1) switch (_context46.prev = _context46.next) {
|
|
1230
1230
|
case 0:
|
|
1231
|
-
return _context46.abrupt("return", render(
|
|
1231
|
+
return _context46.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
1232
1232
|
appContextProviderProps: {
|
|
1233
1233
|
person: person,
|
|
1234
1234
|
selectedPrograms: filteredPrograms,
|
|
@@ -1248,7 +1248,7 @@ describe('ReferralBuilder', function () {
|
|
|
1248
1248
|
expect(screen.getByText(/Prepare Your Referrals/i)).toBeInTheDocument();
|
|
1249
1249
|
expect(screen.getByText(/Referral 1: Benefits Eligibility Screening/i)).toBeInTheDocument();
|
|
1250
1250
|
_context48.next = 8;
|
|
1251
|
-
return act(
|
|
1251
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee47() {
|
|
1252
1252
|
return _regeneratorRuntime().wrap(function _callee47$(_context47) {
|
|
1253
1253
|
while (1) switch (_context47.prev = _context47.next) {
|
|
1254
1254
|
case 0:
|
|
@@ -1276,7 +1276,7 @@ describe('ReferralBuilder', function () {
|
|
|
1276
1276
|
});
|
|
1277
1277
|
describe('receiving programs not in the same network or provider', function () {
|
|
1278
1278
|
describe('on-platform receiving programs are in licensed provider, provider_type: provider', function () {
|
|
1279
|
-
it('should not group programs', /*#__PURE__*/_asyncToGenerator(
|
|
1279
|
+
it('should not group programs', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee50() {
|
|
1280
1280
|
var filteredPrograms;
|
|
1281
1281
|
return _regeneratorRuntime().wrap(function _callee50$(_context50) {
|
|
1282
1282
|
while (1) switch (_context50.prev = _context50.next) {
|
|
@@ -1300,11 +1300,11 @@ describe('ReferralBuilder', function () {
|
|
|
1300
1300
|
break;
|
|
1301
1301
|
}
|
|
1302
1302
|
_context50.next = 4;
|
|
1303
|
-
return act(
|
|
1303
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee49() {
|
|
1304
1304
|
return _regeneratorRuntime().wrap(function _callee49$(_context49) {
|
|
1305
1305
|
while (1) switch (_context49.prev = _context49.next) {
|
|
1306
1306
|
case 0:
|
|
1307
|
-
return _context49.abrupt("return", render(
|
|
1307
|
+
return _context49.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
1308
1308
|
appContextProviderProps: {
|
|
1309
1309
|
person: person,
|
|
1310
1310
|
selectedPrograms: filteredPrograms,
|
|
@@ -1341,7 +1341,7 @@ describe('ReferralBuilder', function () {
|
|
|
1341
1341
|
});
|
|
1342
1342
|
});
|
|
1343
1343
|
describe('two unlisted programs different service', function () {
|
|
1344
|
-
it('it should display two referrals with one unlisted program on each referral', /*#__PURE__*/_asyncToGenerator(
|
|
1344
|
+
it('it should display two referrals with one unlisted program on each referral', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee53() {
|
|
1345
1345
|
var filteredPrograms;
|
|
1346
1346
|
return _regeneratorRuntime().wrap(function _callee53$(_context53) {
|
|
1347
1347
|
while (1) switch (_context53.prev = _context53.next) {
|
|
@@ -1355,11 +1355,11 @@ describe('ReferralBuilder', function () {
|
|
|
1355
1355
|
break;
|
|
1356
1356
|
}
|
|
1357
1357
|
_context53.next = 4;
|
|
1358
|
-
return act(
|
|
1358
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee51() {
|
|
1359
1359
|
return _regeneratorRuntime().wrap(function _callee51$(_context51) {
|
|
1360
1360
|
while (1) switch (_context51.prev = _context51.next) {
|
|
1361
1361
|
case 0:
|
|
1362
|
-
return _context51.abrupt("return", render(
|
|
1362
|
+
return _context51.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
1363
1363
|
appContextProviderProps: {
|
|
1364
1364
|
person: person,
|
|
1365
1365
|
selectedPrograms: filteredPrograms,
|
|
@@ -1385,7 +1385,7 @@ describe('ReferralBuilder', function () {
|
|
|
1385
1385
|
expect(screen.getAllByText(/Referral 1/i)[0]).toBeInTheDocument();
|
|
1386
1386
|
expect(screen.getByText(/Network selection/i)).toBeInTheDocument();
|
|
1387
1387
|
_context53.next = 9;
|
|
1388
|
-
return act(
|
|
1388
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee52() {
|
|
1389
1389
|
return _regeneratorRuntime().wrap(function _callee52$(_context52) {
|
|
1390
1390
|
while (1) switch (_context52.prev = _context52.next) {
|
|
1391
1391
|
case 0:
|
|
@@ -1409,7 +1409,7 @@ describe('ReferralBuilder', function () {
|
|
|
1409
1409
|
})));
|
|
1410
1410
|
});
|
|
1411
1411
|
describe('two unlisted programs same service', function () {
|
|
1412
|
-
it('it should display one referral with two unlisted programs', /*#__PURE__*/_asyncToGenerator(
|
|
1412
|
+
it('it should display one referral with two unlisted programs', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee55() {
|
|
1413
1413
|
var filteredPrograms;
|
|
1414
1414
|
return _regeneratorRuntime().wrap(function _callee55$(_context55) {
|
|
1415
1415
|
while (1) switch (_context55.prev = _context55.next) {
|
|
@@ -1422,11 +1422,11 @@ describe('ReferralBuilder', function () {
|
|
|
1422
1422
|
break;
|
|
1423
1423
|
}
|
|
1424
1424
|
_context55.next = 4;
|
|
1425
|
-
return act(
|
|
1425
|
+
return act(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee54() {
|
|
1426
1426
|
return _regeneratorRuntime().wrap(function _callee54$(_context54) {
|
|
1427
1427
|
while (1) switch (_context54.prev = _context54.next) {
|
|
1428
1428
|
case 0:
|
|
1429
|
-
return _context54.abrupt("return", render(
|
|
1429
|
+
return _context54.abrupt("return", render(/*#__PURE__*/React.createElement(ReferralBuilder, null), {
|
|
1430
1430
|
appContextProviderProps: {
|
|
1431
1431
|
person: person,
|
|
1432
1432
|
selectedPrograms: filteredPrograms,
|