You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: __tests__/__snapshots__/get-user-status.js.snap
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,17 @@ Object {
88
88
}
89
89
`;
90
90
91
+
exports[`Individuals exist, but the user is not one of them; it is an XSS attempt 1`] =`
92
+
Object {
93
+
"context": "Participation",
94
+
"description": "@<script>alert(1);</script> has not signed up to participate",
95
+
"isNothing": true,
96
+
"longDescription": "@<script>alert(1);</script> does not appear to have signed the agreement, or be associated with an entity that has done so. Please sign it, or forward it to an authorized representative!",
@@ -75,10 +75,7 @@ function statusIndividualNoWorkstreams(submitterGitHubID, repoName) {
75
75
state: "pending",
76
76
isNothing: false,
77
77
description: `@${submitterGitHubID} participates as an individual, but not in this workstream`,
78
-
longDescription: `@${submitterGitHubID} has signed up to participate as an individual, but `+
79
-
`has not chosen to participate in the ${workstreamName} workstream. To `+
80
-
`amend your agreement, submit a pull request to <a href="https://github.com/`+
81
-
`${repo}">${repo}</a>.`,
78
+
longDescription: html`@${submitterGitHubID} has signed up to participate as an individual, but has not chosen to participate in the ${workstreamName} workstream. To amend your agreement, submit a pull request to <ahref="https://github.com/${repo}">${repo}</a>.`,
@@ -89,8 +86,7 @@ function statusIndividualUnverified(submitterGitHubID, repoName) {
89
86
state: "pending",
90
87
isNothing: false,
91
88
description: `@${submitterGitHubID} is not yet verified`,
92
-
longDescription: `@${submitterGitHubID} has signed up to participate as an individual, but `+
93
-
`has not yet been verified. Hold tight while we sort this out on our end!`,
89
+
longDescription: html`@${submitterGitHubID} has signed up to participate as an individual, but has not yet been verified. Hold tight while we sort this out on our end!`,
@@ -103,10 +99,7 @@ function statusEntity(submitterGitHubID, repoName, entity) {
103
99
state: "success",
104
100
isNothing: false,
105
101
description: `${submitterGitHubID} participates on behalf of ${entity.info.name}`,
106
-
longDescription: `@${submitterGitHubID} is part of the ${entity.info.gitHubOrganization} `+
107
-
`GitHub organization, associated with ${entity.info.name}, which has signed `+
108
-
`the agreement and participates in the ${workstreamName} workstream. All is `+
109
-
`well; contribute at will!`,
102
+
longDescription: html`@${submitterGitHubID} is part of the ${entity.info.gitHubOrganization} GitHub organization, associated with ${entity.info.name}, which has signed the agreement and participates in the ${workstreamName} workstream. All is well; contribute at will!`,
@@ -119,9 +112,7 @@ function statusEntitiesUnverified(submitterGitHubID, repoName, entities) {
119
112
state: "pending",
120
113
isNothing: false,
121
114
description: `@${submitterGitHubID} participates on behalf of an unverified entity`,
122
-
longDescription: `@${submitterGitHubID} is part of the ${orgs} GitHub ${word}, but `+
123
-
`${pronoun}${haveVerb} not yet been verified. Hold tight while we sort `+
124
-
`this out on our end!`,
115
+
longDescription: html`@${submitterGitHubID} is part of the ${orgs} GitHub ${word}, but ${pronoun}${haveVerb} not yet been verified. Hold tight while we sort this out on our end!`,
@@ -135,10 +126,7 @@ function statusEntityNoWorkstreams(submitterGitHubID, repoName, entities) {
135
126
state: "pending",
136
127
isNothing: false,
137
128
description: `@${submitterGitHubID} participates on behalf of a non-workstream entity`,
138
-
longDescription: `@${submitterGitHubID} is part of the ${orgs} GitHub ${word}, but `+
139
-
`${pronoun}${doVerb} not participate in the ${workstreamName} workstream. `+
140
-
`Please have the contact for ${pronoun2}${word} update their participation `+
141
-
`agreement.`,
129
+
longDescription: html`@${submitterGitHubID} is part of the ${orgs} GitHub ${word}, but ${pronoun}${doVerb} not participate in the ${workstreamName} workstream. Please have the contact for ${pronoun2}${word} update their participation agreement.`,
@@ -149,9 +137,7 @@ function statusNothing(submitterGitHubID, repoName) {
149
137
state: "pending",
150
138
isNothing: true,
151
139
description: `@${submitterGitHubID} has not signed up to participate`,
152
-
longDescription: `@${submitterGitHubID} does not appear to have signed the agreement, or be `+
153
-
`associated with an entity that has done so. Please sign it, or forward it `+
154
-
`to an authorized representative!`,
140
+
longDescription: html`@${submitterGitHubID} does not appear to have signed the agreement, or be associated with an entity that has done so. Please sign it, or forward it to an authorized representative!`,
0 commit comments