fxa/libs/payments/eligibility
Reino Muhl 7e5e74236b
fix(auth): offering comparison upgrade fix
Because:

* Offering comparison in the eligibility manager incorrectly indicates
  a downgrade if the difference between the target and source index
  is greater than 1, which can happen for subgroups with multiple
  offerings.

This commit:

* During offering comparison, if the difference between target and
  source index is positive, return UPGRADE, for values that are the same
  return SAME, and negative values return DOWNGRADE.

Closes #
2024-02-13 19:32:35 -05:00
..
src fix(auth): offering comparison upgrade fix 2024-02-13 19:32:35 -05:00
.eslintrc.json feat(libs): create EligibilityManager library 2023-09-25 16:02:44 -04:00
README.md feat(libs): create EligibilityManager library 2023-09-25 16:02:44 -04:00
jest.config.ts feat(libs): create EligibilityManager library 2023-09-25 16:02:44 -04:00
package.json feat(libs): create EligibilityManager library 2023-09-25 16:02:44 -04:00
project.json chore(nx): upgrade to nx 18 2024-02-12 09:01:00 -05:00
tsconfig.json feat(libs): create EligibilityManager library 2023-09-25 16:02:44 -04:00
tsconfig.lib.json feat(libs): create EligibilityManager library 2023-09-25 16:02:44 -04:00
tsconfig.spec.json feat(libs): create EligibilityManager library 2023-09-25 16:02:44 -04:00

README.md

payments-eligibility

This library was generated with Nx.

Building

Run nx build payments-eligibility to build the library.

Running unit tests

Run nx test-unit payments-eligibility to execute the unit tests via Jest.