diff --git a/frontend/src/__tests__/commitmentOptions.test.ts b/frontend/src/__tests__/commitmentOptions.test.ts index 0c97ad1b..762bc554 100644 --- a/frontend/src/__tests__/commitmentOptions.test.ts +++ b/frontend/src/__tests__/commitmentOptions.test.ts @@ -35,8 +35,8 @@ describe('commitmentOptions', () => { expect(config.invalidCombinations).toBeUndefined(); }); - it('should return savings-plans config with all options', () => { - const config = getCommitmentConfig('aws', 'savings-plans'); + it('should return savingsplans config with all options', () => { + const config = getCommitmentConfig('aws', 'savingsplans'); expect(config.terms).toHaveLength(2); expect(config.payments).toHaveLength(3); @@ -198,9 +198,9 @@ describe('commitmentOptions', () => { expect(isValidCombination('aws', 'ec2', 3, 'all-upfront')).toBe(true); }); - it('should return true for all savings-plans combinations', () => { - expect(isValidCombination('aws', 'savings-plans', 1, 'no-upfront')).toBe(true); - expect(isValidCombination('aws', 'savings-plans', 3, 'no-upfront')).toBe(true); + it('should return true for all savingsplans combinations', () => { + expect(isValidCombination('aws', 'savingsplans', 1, 'no-upfront')).toBe(true); + expect(isValidCombination('aws', 'savingsplans', 3, 'no-upfront')).toBe(true); }); }); diff --git a/frontend/src/commitmentOptions.ts b/frontend/src/commitmentOptions.ts index d78c500d..98e7b720 100644 --- a/frontend/src/commitmentOptions.ts +++ b/frontend/src/commitmentOptions.ts @@ -55,7 +55,7 @@ const commitmentConfigs: Record> = { payments: AWS_PAYMENTS }, // Savings Plans - all options available - 'savings-plans': { + savingsplans: { terms: STANDARD_TERMS, payments: AWS_PAYMENTS },