Skip to content

Commit fbabb1c

Browse files
authored
Add active attribute (#246)
1 parent 190c883 commit fbabb1c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export type EmailForward = {
9191
destination_email: string;
9292
from: string;
9393
to: string;
94+
active: boolean;
9495
created_at: string;
9596
updated_at: string;
9697
};

test/domain_email_forwards.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ describe("domains", () => {
6060
);
6161

6262
expect(response.data.length).toBe(1);
63+
expect(response.data[0].active).toBe(true);
6364
});
6465

6566
it("exposes the pagination info", async () => {
@@ -134,6 +135,7 @@ describe("domains", () => {
134135
expect(emailForward.to).toBe("[email protected]");
135136
expect(emailForward.alias_email).toBe("[email protected]");
136137
expect(emailForward.destination_email).toBe("[email protected]");
138+
expect(emailForward.active).toBe(true);
137139
expect(emailForward.created_at).toBe("2021-01-25T13:54:40Z");
138140
expect(emailForward.updated_at).toBe("2021-01-25T13:54:40Z");
139141
});
@@ -187,6 +189,7 @@ describe("domains", () => {
187189
);
188190

189191
expect(response.data.id).toBe(41872);
192+
expect(response.data.active).toBe(true);
190193
});
191194
});
192195

0 commit comments

Comments
 (0)