Skip to content

Commit 688aff4

Browse files
Merge branch 'adoption-token' into adoption-token-2
2 parents 87ed896 + 100f2b3 commit 688aff4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/extensions/endpoints/adoption-code/test/index.test.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ describe('adoption code endpoints', () => {
765765
expect(notificationCreateOne.args[0]?.[0]).to.deep.equal({
766766
recipient: 'f3115997-31d1-4cf5-8b41-0617a99c5706',
767767
subject: 'New probe adopted',
768-
message: 'New probe [**probe-fr-paris-02**](/probes/generatedId) with IP address **1.1.1.1** was successfully assigned to your account.',
768+
message: 'A new probe [**probe-fr-paris-02**](/probes/generatedId) with IP address **1.1.1.1** has been assigned to your account.',
769769
});
770770
});
771771
});
@@ -842,7 +842,7 @@ describe('adoption code endpoints', () => {
842842
expect(notificationCreateOne.args[0]?.[0]).to.deep.include({
843843
recipient: 'f3115997-31d1-4cf5-8b41-0617a99c5706',
844844
subject: 'New probe adopted',
845-
message: 'New probe [**probe-fr-paris-01**](/probes/generatedId) with IP address **1.1.1.1** was successfully assigned to your account.',
845+
message: 'A new probe [**probe-fr-paris-01**](/probes/generatedId) with IP address **1.1.1.1** has been assigned to your account.',
846846
});
847847
});
848848

@@ -885,13 +885,13 @@ describe('adoption code endpoints', () => {
885885
expect(notificationCreateOne.args[0]?.[0]).to.deep.include({
886886
recipient: 'f3115997-31d1-4cf5-8b41-0617a99c5706',
887887
subject: 'New probe adopted',
888-
message: 'New probe [**probe-fr-paris-01**](/probes/generatedId) with IP address **1.1.1.1** was successfully assigned to your account.',
888+
message: 'A new probe [**probe-fr-paris-01**](/probes/generatedId) with IP address **1.1.1.1** has been assigned to your account.',
889889
});
890890

891891
expect(notificationCreateOne.args[1]?.[0]).to.deep.include({
892892
recipient: 'otherUserId',
893-
subject: 'Probe was unassigned',
894-
message: 'Your probe **other-user-probe-01** with IP address **1.1.1.1** was assigned to another account. That happened because probe specified adoption token of that account.',
893+
subject: 'Probe unassigned',
894+
message: 'Your probe **other-user-probe-01** with IP address **1.1.1.1** has been reassigned to another user (it reported an adoption token of another user).',
895895
});
896896
});
897897

0 commit comments

Comments
 (0)