Skip to content

Commit

Permalink
fix(foxy-admin-subscription-form): use yyyy-mm-dd format for start/en…
Browse files Browse the repository at this point in the history
…d/next dates
  • Loading branch information
pheekus committed Jan 9, 2025
1 parent 2e7542c commit 6f83652
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ describe('AdminSubscriptionForm', () => {

expect(control?.localName).to.equal('foxy-internal-date-control');
expect(control).to.have.attribute('layout', 'summary-item');
expect(control).to.have.attribute('format', 'iso-long');
});

it('renders frequency control inside of the general summary control', async () => {
Expand Down Expand Up @@ -233,7 +232,6 @@ describe('AdminSubscriptionForm', () => {

expect(control?.localName).to.equal('foxy-internal-date-control');
expect(control).to.have.attribute('layout', 'summary-item');
expect(control).to.have.attribute('format', 'iso-long');
});

it('renders date control for end date inside of the general summary control', async () => {
Expand All @@ -253,7 +251,6 @@ describe('AdminSubscriptionForm', () => {

expect(control?.localName).to.equal('foxy-internal-date-control');
expect(control).to.have.attribute('layout', 'summary-item');
expect(control).to.have.attribute('format', 'iso-long');
});

it('renders summary control with overdue information', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,17 @@ export class AdminSubscriptionForm extends Base<Data> {
</foxy-internal-admin-subscription-form-error>
<foxy-internal-summary-control infer="general">
<foxy-internal-date-control layout="summary-item" format="iso-long" infer="start-date">
<foxy-internal-date-control layout="summary-item" infer="start-date">
</foxy-internal-date-control>
<foxy-internal-frequency-control
layout="summary-item"
infer="frequency"
allow-twice-a-month
>
</foxy-internal-frequency-control>
<foxy-internal-date-control
layout="summary-item"
format="iso-long"
infer="next-transaction-date"
>
<foxy-internal-date-control layout="summary-item" infer="next-transaction-date">
</foxy-internal-date-control>
<foxy-internal-date-control layout="summary-item" format="iso-long" infer="end-date">
<foxy-internal-date-control layout="summary-item" infer="end-date">
</foxy-internal-date-control>
</foxy-internal-summary-control>
Expand Down

0 comments on commit 6f83652

Please sign in to comment.