Skip to content

Commit 97cfdc4

Browse files
committed
add small test
1 parent 7334481 commit 97cfdc4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/monthly-giving-circle.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import './presentational/mgc-button';
1414
import type { MonthlyPlan } from './models/plan';
1515
import './edit-plan-form';
1616
import type { IauxEditPlanForm } from './edit-plan-form';
17+
import { Receipt } from './models/receipt';
1718

1819
export type APlanUpdate = {
1920
plan?: MonthlyPlan;
@@ -43,7 +44,7 @@ export class MonthlyGivingCircle extends LitElement {
4344

4445
@property({ type: Boolean }) canEditPaymentMethod: boolean = false;
4546

46-
@property({ type: Array }) receipts = [];
47+
@property({ type: Array }) receipts: Receipt[] = [];
4748

4849
@property({ type: Array }) updates: APlanUpdate[] = [];
4950

test/receipt-email-request-flow.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ describe('Receipts: When requesting an email', () => {
3737
></ia-monthly-giving-circle>`,
3838
);
3939

40+
expect(el.receipts.length).to.equal(1);
41+
4042
// open receipt view
4143
const titleEl = el.querySelector('ia-mgc-title');
4244
const receiptsDisplayButton = titleEl!.querySelector(

0 commit comments

Comments
 (0)