Skip to content

Commit 039f8f9

Browse files
committed
update existing snapshots
- based on the modifications of the previous commit regarding the `PestHttpRecorder` polish
1 parent 2edd4ea commit 039f8f9

File tree

4 files changed

+364
-9
lines changed

4 files changed

+364
-9
lines changed

tests/snapshots/comments/get_v1-comments_block-id-cbf6b0af-6eaa-45ca-9715-9fa147ef6b17-page-size-100.json

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"header": {
3+
"User-Agent": [
4+
"GuzzleHttp\/7"
5+
],
6+
"Host": [
7+
"api.notion.com"
8+
],
9+
"Notion-Version": [
10+
"2021-05-13"
11+
]
12+
},
13+
"method": "get",
14+
"status": 404,
15+
"payload": "block_id=cbf6b0af-6eaa-45ca-9715-9fa147ef6b17&page_size=100&",
16+
"data": {
17+
"object": "error",
18+
"status": 404,
19+
"code": "object_not_found",
20+
"message": "Could not find block with ID: cbf6b0af-6eaa-45ca-9715-9fa147ef6b17. Make sure the relevant pages and databases are shared with your integration."
21+
}
22+
}

tests/snapshots/comments/get_v1-comments_block-id-cb588bcbcbdb4f2eac3db05446b8f5d9-page-size-100.json renamed to tests/snapshots/comments/get_v1-comments_list-of-comments.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
{
2+
"header": {
3+
"User-Agent": [
4+
"GuzzleHttp\/7"
5+
],
6+
"Host": [
7+
"api.notion.com"
8+
],
9+
"Notion-Version": [
10+
"2021-05-13"
11+
]
12+
},
13+
"method": "get",
214
"status": 200,
15+
"payload": "block_id=cb588bcbcbdb4f2eac3db05446b8f5d9&page_size=100&",
316
"data": {
417
"object": "list",
518
"results": [
Lines changed: 329 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,329 @@
1+
{
2+
"header": {
3+
"Content-Length": [
4+
"1498"
5+
],
6+
"User-Agent": [
7+
"GuzzleHttp\/7"
8+
],
9+
"Content-Type": [
10+
"application\/json"
11+
],
12+
"Host": [
13+
"api.notion.com"
14+
],
15+
"Notion-Version": [
16+
"2021-05-13"
17+
]
18+
},
19+
"method": "post",
20+
"status": 200,
21+
"payload": {
22+
"is_inline": false,
23+
"parent": {
24+
"type": "page_id",
25+
"page_id": "0adbc2eb57e84569a700a70d537615be"
26+
},
27+
"title": [
28+
{
29+
"text": {
30+
"content": "Created By Testing Database"
31+
}
32+
}
33+
],
34+
"properties": {
35+
"Test Title": {
36+
"type": "title",
37+
"title": []
38+
},
39+
"Test Custom RichText": {
40+
"type": "rich_text",
41+
"rich_text": []
42+
},
43+
"Test RichText": {
44+
"type": "rich_text",
45+
"rich_text": []
46+
},
47+
"Test Checkbox": {
48+
"type": "checkbox",
49+
"checkbox": []
50+
},
51+
"Test Select": {
52+
"type": "select",
53+
"select": {
54+
"options": [
55+
{
56+
"name": "testing",
57+
"color": "blue"
58+
}
59+
]
60+
}
61+
},
62+
"Test MultiSelect": {
63+
"type": "multi_select",
64+
"multi_select": {
65+
"options": [
66+
{
67+
"name": "testing2",
68+
"color": "yellow"
69+
}
70+
]
71+
}
72+
},
73+
"Test Number": {
74+
"type": "number",
75+
"number": {
76+
"format": "dollar"
77+
}
78+
},
79+
"Test Date": {
80+
"type": "date",
81+
"date": []
82+
},
83+
"Test Formula": {
84+
"type": "formula",
85+
"formula": {
86+
"expression": "prop(\"Test MultiSelect\")"
87+
}
88+
},
89+
"Test Url": {
90+
"type": "url",
91+
"url": []
92+
},
93+
"Test Email": {
94+
"type": "email",
95+
"email": []
96+
},
97+
"Test PhoneNumber": {
98+
"type": "phone_number",
99+
"phone_number": []
100+
},
101+
"Test People": {
102+
"type": "people",
103+
"people": []
104+
},
105+
"Test Files": {
106+
"type": "files",
107+
"files": []
108+
},
109+
"Test Created By": {
110+
"type": "created_by",
111+
"created_by": []
112+
},
113+
"Test Created Time": {
114+
"type": "created_time",
115+
"created_time": []
116+
},
117+
"Test Last Edited By": {
118+
"type": "last_edited_by",
119+
"last_edited_by": []
120+
},
121+
"Test Last Edited Time": {
122+
"type": "last_edited_time",
123+
"last_edited_time": []
124+
}
125+
},
126+
"cover": {
127+
"type": "external",
128+
"external": {
129+
"url": "https:\/\/example.com\/cover.jpg"
130+
}
131+
},
132+
"icon": {
133+
"type": "external",
134+
"external": {
135+
"url": "https:\/\/example.com\/cover.jpg"
136+
}
137+
},
138+
"description": [
139+
{
140+
"text": {
141+
"content": "This Database has been created by a Pest Test from Laravel"
142+
}
143+
}
144+
]
145+
},
146+
"data": {
147+
"object": "database",
148+
"id": "baa6be67-5de6-4128-bc41-04272961506f",
149+
"cover": {
150+
"type": "external",
151+
"external": {
152+
"url": "https:\/\/example.com\/cover.jpg"
153+
}
154+
},
155+
"icon": {
156+
"type": "external",
157+
"external": {
158+
"url": "https:\/\/example.com\/cover.jpg"
159+
}
160+
},
161+
"created_time": "2023-04-30T09:37:00.000Z",
162+
"created_by": {
163+
"object": "user",
164+
"id": "1068e45a-6f6d-4b78-abd0-0d1d44bde855"
165+
},
166+
"last_edited_by": {
167+
"object": "user",
168+
"id": "1068e45a-6f6d-4b78-abd0-0d1d44bde855"
169+
},
170+
"last_edited_time": "2023-04-30T09:37:00.000Z",
171+
"title": [
172+
{
173+
"type": "text",
174+
"text": {
175+
"content": "Created By Testing Database",
176+
"link": null
177+
},
178+
"annotations": {
179+
"bold": false,
180+
"italic": false,
181+
"strikethrough": false,
182+
"underline": false,
183+
"code": false,
184+
"color": "default"
185+
},
186+
"plain_text": "Created By Testing Database",
187+
"href": null
188+
}
189+
],
190+
"description": [],
191+
"is_inline": false,
192+
"properties": {
193+
"Test PhoneNumber": {
194+
"id": "A<xT",
195+
"name": "Test PhoneNumber",
196+
"type": "phone_number",
197+
"phone_number": []
198+
},
199+
"Test Select": {
200+
"id": "G<L:",
201+
"name": "Test Select",
202+
"type": "select",
203+
"select": {
204+
"options": [
205+
{
206+
"id": "c194634a-0b43-40a5-9eb7-ef4537956245",
207+
"name": "testing",
208+
"color": "blue"
209+
}
210+
]
211+
}
212+
},
213+
"Test MultiSelect": {
214+
"id": "IKmc",
215+
"name": "Test MultiSelect",
216+
"type": "multi_select",
217+
"multi_select": {
218+
"options": [
219+
{
220+
"id": "7449e77e-74a3-4152-983c-db59cd22950a",
221+
"name": "testing2",
222+
"color": "yellow"
223+
}
224+
]
225+
}
226+
},
227+
"Test Last Edited By": {
228+
"id": "L}iP",
229+
"name": "Test Last Edited By",
230+
"type": "last_edited_by",
231+
"last_edited_by": []
232+
},
233+
"Test Number": {
234+
"id": "QGYQ",
235+
"name": "Test Number",
236+
"type": "number",
237+
"number": {
238+
"format": "dollar"
239+
}
240+
},
241+
"Test Date": {
242+
"id": "V>Iv",
243+
"name": "Test Date",
244+
"type": "date",
245+
"date": []
246+
},
247+
"Test Email": {
248+
"id": "`Xl_",
249+
"name": "Test Email",
250+
"type": "email",
251+
"email": []
252+
},
253+
"Test People": {
254+
"id": "`fWn",
255+
"name": "Test People",
256+
"type": "people",
257+
"people": []
258+
},
259+
"Test Created Time": {
260+
"id": "bjoD",
261+
"name": "Test Created Time",
262+
"type": "created_time",
263+
"created_time": []
264+
},
265+
"Test Created By": {
266+
"id": "jLFx",
267+
"name": "Test Created By",
268+
"type": "created_by",
269+
"created_by": []
270+
},
271+
"Test Files": {
272+
"id": "pBRs",
273+
"name": "Test Files",
274+
"type": "files",
275+
"files": []
276+
},
277+
"Test Last Edited Time": {
278+
"id": "uEkS",
279+
"name": "Test Last Edited Time",
280+
"type": "last_edited_time",
281+
"last_edited_time": []
282+
},
283+
"Test Url": {
284+
"id": "v?Pt",
285+
"name": "Test Url",
286+
"type": "url",
287+
"url": []
288+
},
289+
"Test Formula": {
290+
"id": "x\\{j",
291+
"name": "Test Formula",
292+
"type": "formula",
293+
"formula": {
294+
"expression": "prop(\"Test MultiSelect\")"
295+
}
296+
},
297+
"Test RichText": {
298+
"id": "z;Oz",
299+
"name": "Test RichText",
300+
"type": "rich_text",
301+
"rich_text": []
302+
},
303+
"Test Custom RichText": {
304+
"id": "z|Z]",
305+
"name": "Test Custom RichText",
306+
"type": "rich_text",
307+
"rich_text": []
308+
},
309+
"Test Checkbox": {
310+
"id": "~KYE",
311+
"name": "Test Checkbox",
312+
"type": "checkbox",
313+
"checkbox": []
314+
},
315+
"Test Title": {
316+
"id": "title",
317+
"name": "Test Title",
318+
"type": "title",
319+
"title": []
320+
}
321+
},
322+
"parent": {
323+
"type": "page_id",
324+
"page_id": "0adbc2eb-57e8-4569-a700-a70d537615be"
325+
},
326+
"url": "https:\/\/www.notion.so\/baa6be675de64128bc4104272961506f",
327+
"archived": false
328+
}
329+
}

0 commit comments

Comments
 (0)