|
1 |
| -// Jest Snapshot v1, https://goo.gl/fbAQLP |
2 |
| - |
3 |
| -exports[`An entity with a scope of "all" must transform appropriately 1`] = ` |
| 1 | +exports[`An entity with a scope of \"all\" must transform appropriately 1`] = ` |
4 | 2 | {
|
5 |
| - "privateData": null, |
| 3 | + "type": "entity", |
6 | 4 | "publicData": {
|
7 | 5 | "id": "1d8ab899-4d91-48b8-acfa-bf9cde5ad909",
|
| 6 | + "verified": false, |
| 7 | + "workstreams": "all", |
8 | 8 | "info": {
|
| 9 | + "name": "Contoso Ltd.", |
9 | 10 | "address": "123 Main Street, New York, NY, USA",
|
| 11 | + "url": "https://contoso.com/", |
| 12 | + "gitHubOrganization": "contoso", |
10 | 13 | "contact1": {
|
11 |
| - |
12 |
| - "gitHubID": "ellencontoso", |
13 | 14 | "name": "Ellen Adams",
|
| 15 | + |
| 16 | + "gitHubID": "ellencontoso" |
14 | 17 | },
|
15 | 18 | "contact2": {
|
16 |
| - |
17 |
| - "gitHubID": "lisacontoso", |
18 | 19 | "name": "Lisa Andrews",
|
19 |
| - }, |
20 |
| - "gitHubOrganization": "contoso", |
21 |
| - "name": "Contoso Ltd.", |
22 |
| - "url": "https://contoso.com/", |
| 20 | + |
| 21 | + "gitHubID": "lisacontoso" |
| 22 | + } |
23 | 23 | },
|
24 | 24 | "signature": {
|
25 |
| - "signedAt": "1970-01-01T00:00:00.000Z", |
26 | 25 | "signedBy": "Domenic Denicola",
|
27 | 26 | "signedByTitle": "Software engineer",
|
28 |
| - }, |
29 |
| - "verified": false, |
30 |
| - "workstreams": "all", |
| 27 | + "signedAt": "1970-01-01T00:00:00.000Z" |
| 28 | + } |
31 | 29 | },
|
32 |
| - "type": "entity", |
| 30 | + "privateData": null |
33 | 31 | }
|
34 | 32 | `;
|
35 | 33 |
|
36 | 34 | exports[`An entity with an array of known scopes must transform appropriately 1`] = `
|
37 | 35 | {
|
38 |
| - "privateData": null, |
| 36 | + "type": "entity", |
39 | 37 | "publicData": {
|
40 | 38 | "id": "1d8ab899-4d91-48b8-acfa-bf9cde5ad909",
|
| 39 | + "verified": false, |
| 40 | + "workstreams": [ |
| 41 | + "compat", |
| 42 | + "console", |
| 43 | + "xhr" |
| 44 | + ], |
41 | 45 | "info": {
|
| 46 | + "name": "Contoso Ltd.", |
42 | 47 | "address": "123 Main Street, New York, NY, USA",
|
| 48 | + "url": "https://contoso.com/", |
| 49 | + "gitHubOrganization": "contoso", |
43 | 50 | "contact1": {
|
44 |
| - |
45 |
| - "gitHubID": "ellencontoso", |
46 | 51 | "name": "Ellen Adams",
|
| 52 | + |
| 53 | + "gitHubID": "ellencontoso" |
47 | 54 | },
|
48 | 55 | "contact2": {
|
49 |
| - |
50 |
| - "gitHubID": "lisacontoso", |
51 | 56 | "name": "Lisa Andrews",
|
52 |
| - }, |
53 |
| - "gitHubOrganization": "contoso", |
54 |
| - "name": "Contoso Ltd.", |
55 |
| - "url": "https://contoso.com/", |
| 57 | + |
| 58 | + "gitHubID": "lisacontoso" |
| 59 | + } |
56 | 60 | },
|
57 | 61 | "signature": {
|
58 |
| - "signedAt": "1970-01-01T00:00:00.000Z", |
59 | 62 | "signedBy": "Domenic Denicola",
|
60 | 63 | "signedByTitle": "Software engineer",
|
61 |
| - }, |
62 |
| - "verified": false, |
63 |
| - "workstreams": [ |
64 |
| - "compat", |
65 |
| - "console", |
66 |
| - "xhr", |
67 |
| - ], |
| 64 | + "signedAt": "1970-01-01T00:00:00.000Z" |
| 65 | + } |
68 | 66 | },
|
69 |
| - "type": "entity", |
| 67 | + "privateData": null |
70 | 68 | }
|
71 | 69 | `;
|
72 | 70 |
|
73 | 71 | exports[`An individual selecting a single known workstream must transform appropriately 1`] = `
|
74 | 72 | {
|
75 |
| - "privateData": { |
76 |
| - "id": "1d8ab899-4d91-48b8-acfa-bf9cde5ad909", |
77 |
| - "info": { |
78 |
| - "address": "New York, NY, USA", |
79 |
| - |
80 |
| - }, |
81 |
| - }, |
| 73 | + "type": "individual", |
82 | 74 | "publicData": {
|
83 | 75 | "id": "1d8ab899-4d91-48b8-acfa-bf9cde5ad909",
|
| 76 | + "verified": false, |
| 77 | + "workstreams": [ |
| 78 | + "html" |
| 79 | + ], |
84 | 80 | "info": {
|
85 |
| - "gitHubID": "domenic", |
86 | 81 | "name": "Domenic Denicola",
|
| 82 | + "gitHubID": "domenic" |
87 | 83 | },
|
88 | 84 | "signature": {
|
89 |
| - "signedAt": "1970-01-01T00:00:00.000Z", |
90 |
| - }, |
91 |
| - "verified": false, |
92 |
| - "workstreams": [ |
93 |
| - "html", |
94 |
| - ], |
| 85 | + "signedAt": "1970-01-01T00:00:00.000Z" |
| 86 | + } |
95 | 87 | },
|
96 |
| - "type": "individual", |
97 |
| -} |
98 |
| -`; |
99 |
| - |
100 |
| -exports[`An individual with a scope of "all" must transform appropriately 1`] = ` |
101 |
| -{ |
102 | 88 | "privateData": {
|
103 | 89 | "id": "1d8ab899-4d91-48b8-acfa-bf9cde5ad909",
|
104 | 90 | "info": {
|
105 | 91 | "address": "New York, NY, USA",
|
106 |
| - |
107 |
| - }, |
108 |
| - }, |
| 92 | + |
| 93 | + } |
| 94 | + } |
| 95 | +} |
| 96 | +`; |
| 97 | + |
| 98 | +exports[`An individual with a scope of \"all\" must transform appropriately 1`] = ` |
| 99 | +{ |
| 100 | + "type": "individual", |
109 | 101 | "publicData": {
|
110 | 102 | "id": "1d8ab899-4d91-48b8-acfa-bf9cde5ad909",
|
| 103 | + "verified": false, |
| 104 | + "workstreams": "all", |
111 | 105 | "info": {
|
112 |
| - "gitHubID": "domenic", |
113 | 106 | "name": "Domenic Denicola",
|
| 107 | + "gitHubID": "domenic" |
114 | 108 | },
|
115 | 109 | "signature": {
|
116 |
| - "signedAt": "1970-01-01T00:00:00.000Z", |
117 |
| - }, |
118 |
| - "verified": false, |
119 |
| - "workstreams": "all", |
| 110 | + "signedAt": "1970-01-01T00:00:00.000Z" |
| 111 | + } |
120 | 112 | },
|
121 |
| - "type": "individual", |
| 113 | + "privateData": { |
| 114 | + "id": "1d8ab899-4d91-48b8-acfa-bf9cde5ad909", |
| 115 | + "info": { |
| 116 | + "address": "New York, NY, USA", |
| 117 | + |
| 118 | + } |
| 119 | + } |
122 | 120 | }
|
123 | 121 | `;
|
124 | 122 |
|
125 | 123 | exports[`An individual with an array of known scopes must transform appropriately 1`] = `
|
126 | 124 | {
|
127 |
| - "privateData": { |
128 |
| - "id": "1d8ab899-4d91-48b8-acfa-bf9cde5ad909", |
129 |
| - "info": { |
130 |
| - "address": "New York, NY, USA", |
131 |
| - |
132 |
| - }, |
133 |
| - }, |
| 125 | + "type": "individual", |
134 | 126 | "publicData": {
|
135 | 127 | "id": "1d8ab899-4d91-48b8-acfa-bf9cde5ad909",
|
136 |
| - "info": { |
137 |
| - "gitHubID": "domenic", |
138 |
| - "name": "Domenic Denicola", |
139 |
| - }, |
140 |
| - "signature": { |
141 |
| - "signedAt": "1970-01-01T00:00:00.000Z", |
142 |
| - }, |
143 | 128 | "verified": false,
|
144 | 129 | "workstreams": [
|
145 | 130 | "compat",
|
146 | 131 | "console",
|
147 |
| - "xhr", |
| 132 | + "xhr" |
148 | 133 | ],
|
| 134 | + "info": { |
| 135 | + "name": "Domenic Denicola", |
| 136 | + "gitHubID": "domenic" |
| 137 | + }, |
| 138 | + "signature": { |
| 139 | + "signedAt": "1970-01-01T00:00:00.000Z" |
| 140 | + } |
149 | 141 | },
|
150 |
| - "type": "individual", |
| 142 | + "privateData": { |
| 143 | + "id": "1d8ab899-4d91-48b8-acfa-bf9cde5ad909", |
| 144 | + "info": { |
| 145 | + "address": "New York, NY, USA", |
| 146 | + |
| 147 | + } |
| 148 | + } |
151 | 149 | }
|
152 | 150 | `;
|
153 | 151 |
|
154 | 152 | exports[`An invited individual with invited as their workstreams must transform appropriately 1`] = `
|
155 | 153 | {
|
156 |
| - "privateData": { |
157 |
| - "id": "1d8ab899-4d91-48b8-acfa-bf9cde5ad909", |
158 |
| - "info": { |
159 |
| - "address": "New York, NY, USA", |
160 |
| - |
161 |
| - }, |
162 |
| - }, |
| 154 | + "type": "individual", |
163 | 155 | "publicData": {
|
164 | 156 | "id": "1d8ab899-4d91-48b8-acfa-bf9cde5ad909",
|
| 157 | + "verified": false, |
| 158 | + "workstreams": "Verifier: replace this with the array of workstreams the SG has invited this individual to, or replace it with \\"all\\" if they're invited to all workstreams.", |
165 | 159 | "info": {
|
166 |
| - "gitHubID": "domenic", |
167 | 160 | "name": "Domenic Denicola",
|
| 161 | + "gitHubID": "domenic" |
168 | 162 | },
|
169 |
| - "invited": true, |
170 | 163 | "signature": {
|
171 |
| - "signedAt": "1970-01-01T00:00:00.000Z", |
| 164 | + "signedAt": "1970-01-01T00:00:00.000Z" |
172 | 165 | },
|
173 |
| - "verified": false, |
174 |
| - "workstreams": "Verifier: replace this with the array of workstreams the SG has invited this individual to, or replace it with "all" if they're invited to all workstreams.", |
| 166 | + "invited": true |
175 | 167 | },
|
176 |
| - "type": "individual", |
| 168 | + "privateData": { |
| 169 | + "id": "1d8ab899-4d91-48b8-acfa-bf9cde5ad909", |
| 170 | + "info": { |
| 171 | + "address": "New York, NY, USA", |
| 172 | + |
| 173 | + } |
| 174 | + } |
177 | 175 | }
|
178 | 176 | `;
|
0 commit comments