Skip to content

Commit 525ef68

Browse files
committed
test: use fictional recipient names in fixtures
1 parent a7c029d commit 525ef68

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎connectors/google/src/mail/gmail-api.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ describe("outbound MIME bodies (multipart/alternative HTML + plain)", () => {
494494
it("buildReplyMessage renders named recipients in the To header", () => {
495495
const raw = decodeRawMessage(
496496
buildReplyMessage({
497-
to: [formatFromHeader("dana@x.com", "Dana Sproule")],
497+
to: [formatFromHeader("dana@x.com", "Robin Fielder")],
498498
cc: [],
499499
from: "me@x.com",
500500
subject: "Re: x",
@@ -503,7 +503,7 @@ describe("outbound MIME bodies (multipart/alternative HTML + plain)", () => {
503503
references: "",
504504
})
505505
);
506-
expect(raw).toContain('To: "Dana Sproule" <dana@x.com>');
506+
expect(raw).toContain('To: "Robin Fielder" <dana@x.com>');
507507
});
508508
});
509509

‎connectors/google/src/mail/sync.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ describe("onCreateLinkFn — plain compose (no draft.forward)", () => {
398398
recipients: [
399399
{
400400
id: "c-dana" as Uuid,
401-
name: "Dana Sproule",
401+
name: "Robin Fielder",
402402
externalAccountId: "dana@example.com",
403403
role: null,
404404
},
@@ -408,7 +408,7 @@ describe("onCreateLinkFn — plain compose (no draft.forward)", () => {
408408

409409
expect(sendNewMessage).toHaveBeenCalledTimes(1);
410410
const raw = decodeRawMessage(sendNewMessage.mock.calls[0][0]);
411-
expect(raw).toContain('To: "Dana Sproule" <dana@example.com>');
411+
expect(raw).toContain('To: "Robin Fielder" <dana@example.com>');
412412
expect(link?.type).toBe("email");
413413
});
414414
});

‎connectors/outlook/src/mail/recipient-names.test.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function curatedReplyNote() {
7373
recipients: [
7474
{
7575
id: "c-dana",
76-
name: "Dana Sproule",
76+
name: "Robin Fielder",
7777
externalAccountId: "dana@x.com",
7878
role: null,
7979
},
@@ -88,7 +88,7 @@ describe("outlook onNoteCreatedFn — plain mail reply carries recipient display
8888
{
8989
id: "msg-1",
9090
isDraft: false,
91-
from: { emailAddress: { address: "dana@x.com", name: "Dana Sproule" } },
91+
from: { emailAddress: { address: "dana@x.com", name: "Robin Fielder" } },
9292
toRecipients: [{ emailAddress: { address: "me@work.com" } }],
9393
ccRecipients: [],
9494
},
@@ -112,7 +112,7 @@ describe("outlook onNoteCreatedFn — plain mail reply carries recipient display
112112
expect(graphApi.updateMessage).toHaveBeenCalledTimes(1);
113113
const updateBody = graphApi.updateMessage.mock.calls[0][1];
114114
expect(updateBody.toRecipients).toContainEqual({
115-
emailAddress: { address: "dana@x.com", name: "Dana Sproule" },
115+
emailAddress: { address: "dana@x.com", name: "Robin Fielder" },
116116
});
117117
});
118118
});
@@ -148,7 +148,7 @@ describe("outlook onCreateLinkFn — plain compose carries recipient display nam
148148
recipients: [
149149
{
150150
id: "c-dana" as Uuid,
151-
name: "Dana Sproule",
151+
name: "Robin Fielder",
152152
externalAccountId: "dana@x.com",
153153
role: null,
154154
},
@@ -159,7 +159,7 @@ describe("outlook onCreateLinkFn — plain compose carries recipient display nam
159159
expect(graphApi.createDraft).toHaveBeenCalledTimes(1);
160160
const body = graphApi.createDraft.mock.calls[0][0];
161161
expect(body.toRecipients).toContainEqual({
162-
emailAddress: { address: "dana@x.com", name: "Dana Sproule" },
162+
emailAddress: { address: "dana@x.com", name: "Robin Fielder" },
163163
});
164164
expect(link?.type).toBe("email");
165165
});

‎twister/src/messaging/reply-recipients.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe("resolveOutboundReplyRecipients", () => {
4343
recipients: [
4444
{
4545
id: Uuid.Generate(),
46-
name: "Dana Wagner",
46+
name: "Casey Morgan",
4747
externalAccountId: "dw@x.com",
4848
role: "to",
4949
},
@@ -59,7 +59,7 @@ describe("resolveOutboundReplyRecipients", () => {
5959
headerCc: [],
6060
selfEmails: new Set(),
6161
});
62-
expect(result.to).toEqual([{ address: "dw@x.com", name: "Dana Wagner" }]);
62+
expect(result.to).toEqual([{ address: "dw@x.com", name: "Casey Morgan" }]);
6363
expect(result.cc).toEqual([{ address: "no-name@x.com", name: null }]);
6464
});
6565

0 commit comments

Comments
 (0)