@atproto/bsky 0.0.10 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/api/com/atproto/admin/util.d.ts +5 -0
  3. package/dist/config.d.ts +2 -0
  4. package/dist/context.d.ts +8 -0
  5. package/dist/db/index.js +51 -2
  6. package/dist/db/index.js.map +3 -3
  7. package/dist/db/migrations/20230929T192920807Z-record-cursor-indexes.d.ts +3 -0
  8. package/dist/db/migrations/index.d.ts +1 -0
  9. package/dist/did-cache.d.ts +2 -2
  10. package/dist/index.d.ts +2 -0
  11. package/dist/index.js +1818 -580
  12. package/dist/index.js.map +3 -3
  13. package/dist/lexicon/index.d.ts +16 -0
  14. package/dist/lexicon/lexicons.d.ts +330 -3
  15. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +1 -0
  16. package/dist/lexicon/types/com/atproto/admin/defs.d.ts +28 -0
  17. package/dist/lexicon/types/com/atproto/admin/getAccountInfo.d.ts +29 -0
  18. package/dist/lexicon/types/com/atproto/admin/getSubjectStatus.d.ts +39 -0
  19. package/dist/lexicon/types/com/atproto/admin/searchRepos.d.ts +0 -1
  20. package/dist/lexicon/types/com/atproto/admin/updateSubjectStatus.d.ts +46 -0
  21. package/dist/lexicon/types/com/atproto/server/confirmEmail.d.ts +27 -0
  22. package/dist/lexicon/types/com/atproto/server/createAccount.d.ts +2 -0
  23. package/dist/lexicon/types/com/atproto/server/createSession.d.ts +2 -0
  24. package/dist/lexicon/types/com/atproto/server/getSession.d.ts +1 -0
  25. package/dist/lexicon/types/com/atproto/server/refreshSession.d.ts +1 -0
  26. package/dist/lexicon/types/com/atproto/server/requestEmailConfirmation.d.ts +19 -0
  27. package/dist/lexicon/types/com/atproto/server/requestEmailUpdate.d.ts +30 -0
  28. package/dist/lexicon/types/com/atproto/server/reserveSigningKey.d.ts +30 -0
  29. package/dist/lexicon/types/com/atproto/server/updateEmail.d.ts +27 -0
  30. package/dist/lexicon/types/com/atproto/sync/listRepos.d.ts +1 -0
  31. package/dist/services/actor/index.d.ts +2 -2
  32. package/dist/services/actor/types.d.ts +1 -0
  33. package/dist/services/graph/index.d.ts +2 -0
  34. package/dist/services/moderation/index.d.ts +13 -3
  35. package/dist/services/util/search.d.ts +3 -3
  36. package/package.json +13 -14
  37. package/src/api/app/bsky/actor/searchActors.ts +36 -22
  38. package/src/api/app/bsky/actor/searchActorsTypeahead.ts +24 -17
  39. package/src/api/app/bsky/feed/getAuthorFeed.ts +2 -2
  40. package/src/api/app/bsky/feed/getPostThread.ts +2 -2
  41. package/src/api/app/bsky/graph/getSuggestedFollowsByActor.ts +1 -0
  42. package/src/api/app/bsky/notification/listNotifications.ts +33 -22
  43. package/src/api/com/atproto/admin/getModerationAction.ts +28 -2
  44. package/src/api/com/atproto/admin/getModerationReport.ts +27 -2
  45. package/src/api/com/atproto/admin/getRecord.ts +14 -2
  46. package/src/api/com/atproto/admin/getRepo.ts +13 -2
  47. package/src/api/com/atproto/admin/reverseModerationAction.ts +31 -5
  48. package/src/api/com/atproto/admin/searchRepos.ts +6 -12
  49. package/src/api/com/atproto/admin/takeModerationAction.ts +41 -7
  50. package/src/api/com/atproto/admin/util.ts +50 -0
  51. package/src/api/well-known.ts +8 -0
  52. package/src/auth.ts +12 -5
  53. package/src/auto-moderator/index.ts +1 -0
  54. package/src/config.ts +7 -0
  55. package/src/context.ts +30 -0
  56. package/src/db/migrations/20230929T192920807Z-record-cursor-indexes.ts +40 -0
  57. package/src/db/migrations/index.ts +1 -0
  58. package/src/did-cache.ts +29 -14
  59. package/src/feed-gen/with-friends.ts +2 -2
  60. package/src/index.ts +9 -1
  61. package/src/indexer/subscription.ts +1 -21
  62. package/src/lexicon/index.ts +96 -0
  63. package/src/lexicon/lexicons.ts +368 -4
  64. package/src/lexicon/types/app/bsky/actor/defs.ts +1 -0
  65. package/src/lexicon/types/com/atproto/admin/defs.ts +61 -0
  66. package/src/lexicon/types/com/atproto/admin/getAccountInfo.ts +41 -0
  67. package/src/lexicon/types/com/atproto/admin/getSubjectStatus.ts +54 -0
  68. package/src/lexicon/types/com/atproto/admin/searchRepos.ts +0 -1
  69. package/src/lexicon/types/com/atproto/admin/updateSubjectStatus.ts +61 -0
  70. package/src/lexicon/types/com/atproto/server/confirmEmail.ts +40 -0
  71. package/src/lexicon/types/com/atproto/server/createAccount.ts +2 -0
  72. package/src/lexicon/types/com/atproto/server/createSession.ts +2 -0
  73. package/src/lexicon/types/com/atproto/server/getSession.ts +1 -0
  74. package/src/lexicon/types/com/atproto/server/refreshSession.ts +1 -0
  75. package/src/lexicon/types/com/atproto/server/requestEmailConfirmation.ts +31 -0
  76. package/src/lexicon/types/com/atproto/server/requestEmailUpdate.ts +43 -0
  77. package/src/lexicon/types/com/atproto/server/reserveSigningKey.ts +44 -0
  78. package/src/lexicon/types/com/atproto/server/updateEmail.ts +41 -0
  79. package/src/lexicon/types/com/atproto/sync/listRepos.ts +1 -0
  80. package/src/logger.ts +8 -0
  81. package/src/services/actor/index.ts +16 -10
  82. package/src/services/actor/types.ts +1 -0
  83. package/src/services/actor/views.ts +26 -8
  84. package/src/services/graph/index.ts +26 -7
  85. package/src/services/indexing/index.ts +15 -17
  86. package/src/services/moderation/index.ts +94 -14
  87. package/src/services/moderation/views.ts +1 -0
  88. package/src/services/util/search.ts +24 -23
  89. package/tests/__snapshots__/feed-generation.test.ts.snap +12 -12
  90. package/tests/__snapshots__/indexing.test.ts.snap +4 -4
  91. package/tests/admin/__snapshots__/get-moderation-action.test.ts.snap +172 -0
  92. package/tests/admin/__snapshots__/get-moderation-actions.test.ts.snap +178 -0
  93. package/tests/admin/__snapshots__/get-moderation-report.test.ts.snap +177 -0
  94. package/tests/admin/__snapshots__/get-moderation-reports.test.ts.snap +307 -0
  95. package/tests/admin/__snapshots__/get-record.test.ts.snap +275 -0
  96. package/tests/admin/__snapshots__/get-repo.test.ts.snap +103 -0
  97. package/tests/admin/get-moderation-action.test.ts +100 -0
  98. package/tests/admin/get-moderation-actions.test.ts +164 -0
  99. package/tests/admin/get-moderation-report.test.ts +100 -0
  100. package/tests/admin/get-moderation-reports.test.ts +332 -0
  101. package/tests/admin/get-record.test.ts +115 -0
  102. package/tests/admin/get-repo.test.ts +101 -0
  103. package/tests/{moderation.test.ts → admin/moderation.test.ts} +107 -9
  104. package/tests/admin/repo-search.test.ts +124 -0
  105. package/tests/algos/hot-classic.test.ts +3 -5
  106. package/tests/algos/whats-hot.test.ts +3 -5
  107. package/tests/algos/with-friends.test.ts +2 -4
  108. package/tests/auth.test.ts +64 -0
  109. package/tests/auto-moderator/fuzzy-matcher.test.ts +2 -3
  110. package/tests/auto-moderator/labeler.test.ts +5 -7
  111. package/tests/auto-moderator/takedowns.test.ts +11 -12
  112. package/tests/blob-resolver.test.ts +1 -3
  113. package/tests/did-cache.test.ts +2 -5
  114. package/tests/feed-generation.test.ts +8 -6
  115. package/tests/handle-invalidation.test.ts +2 -3
  116. package/tests/image/server.test.ts +1 -4
  117. package/tests/image/sharp.test.ts +1 -1
  118. package/tests/indexing.test.ts +4 -4
  119. package/tests/notification-server.test.ts +2 -3
  120. package/tests/pipeline/backpressure.test.ts +2 -3
  121. package/tests/pipeline/reingest.test.ts +7 -4
  122. package/tests/pipeline/repartition.test.ts +2 -3
  123. package/tests/reprocessing.test.ts +2 -6
  124. package/tests/seeds/basic.ts +4 -4
  125. package/tests/seeds/follows.ts +1 -1
  126. package/tests/seeds/likes.ts +1 -1
  127. package/tests/seeds/reposts.ts +1 -1
  128. package/tests/seeds/users-bulk.ts +1 -1
  129. package/tests/seeds/users.ts +1 -1
  130. package/tests/server.test.ts +1 -3
  131. package/tests/subscription/repo.test.ts +2 -4
  132. package/tests/views/__snapshots__/author-feed.test.ts.snap +24 -24
  133. package/tests/views/__snapshots__/block-lists.test.ts.snap +42 -7
  134. package/tests/views/__snapshots__/blocks.test.ts.snap +2 -2
  135. package/tests/views/__snapshots__/list-feed.test.ts.snap +6 -6
  136. package/tests/views/__snapshots__/mute-lists.test.ts.snap +15 -4
  137. package/tests/views/__snapshots__/mutes.test.ts.snap +2 -2
  138. package/tests/views/__snapshots__/notifications.test.ts.snap +2 -2
  139. package/tests/views/__snapshots__/posts.test.ts.snap +8 -8
  140. package/tests/views/__snapshots__/thread.test.ts.snap +10 -10
  141. package/tests/views/__snapshots__/timeline.test.ts.snap +58 -58
  142. package/tests/views/actor-likes.test.ts +2 -3
  143. package/tests/views/actor-search.test.ts +5 -5
  144. package/tests/views/admin/repo-search.test.ts +2 -4
  145. package/tests/views/author-feed.test.ts +2 -4
  146. package/tests/views/block-lists.test.ts +34 -7
  147. package/tests/views/blocks.test.ts +6 -3
  148. package/tests/views/follows.test.ts +2 -4
  149. package/tests/views/likes.test.ts +2 -5
  150. package/tests/views/list-feed.test.ts +2 -4
  151. package/tests/views/mute-lists.test.ts +23 -5
  152. package/tests/views/mutes.test.ts +2 -5
  153. package/tests/views/notifications.test.ts +2 -4
  154. package/tests/views/posts.test.ts +2 -5
  155. package/tests/views/profile.test.ts +4 -5
  156. package/tests/views/reposts.test.ts +2 -4
  157. package/tests/views/suggested-follows.test.ts +2 -3
  158. package/tests/views/suggestions.test.ts +2 -4
  159. package/tests/views/thread.test.ts +2 -4
  160. package/tests/views/threadgating.test.ts +2 -3
  161. package/tests/views/timeline.test.ts +2 -4
  162. package/dist/env.d.ts +0 -1
  163. package/example.dev.env +0 -5
  164. package/src/env.ts +0 -9
  165. package/tests/seeds/client.ts +0 -466
  166. /package/tests/{__snapshots__ → admin/__snapshots__}/moderation.test.ts.snap +0 -0
  167. /package/tests/{image/fixtures → sample-img}/at.png +0 -0
  168. /package/tests/{image/fixtures → sample-img}/hd-key.jpg +0 -0
  169. /package/tests/{image/fixtures → sample-img}/key-alt.jpg +0 -0
  170. /package/tests/{image/fixtures → sample-img}/key-landscape-large.jpg +0 -0
  171. /package/tests/{image/fixtures → sample-img}/key-landscape-small.jpg +0 -0
  172. /package/tests/{image/fixtures → sample-img}/key-portrait-large.jpg +0 -0
  173. /package/tests/{image/fixtures → sample-img}/key-portrait-small.jpg +0 -0
@@ -228,7 +228,7 @@ Object {
228
228
  "$type": "app.bsky.embed.images#view",
229
229
  "images": Array [
230
230
  Object {
231
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
231
+ "alt": "tests/sample-img/key-landscape-small.jpg",
232
232
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(4)/cids(6)@jpeg",
233
233
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(4)/cids(6)@jpeg",
234
234
  },
@@ -261,7 +261,7 @@ Object {
261
261
  "$type": "app.bsky.embed.images",
262
262
  "images": Array [
263
263
  Object {
264
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
264
+ "alt": "tests/sample-img/key-landscape-small.jpg",
265
265
  "image": Object {
266
266
  "$type": "blob",
267
267
  "mimeType": "image/jpeg",
@@ -491,6 +491,17 @@ Object {
491
491
  Object {
492
492
  "subject": Object {
493
493
  "did": "user(2)",
494
+ "handle": "dan.test",
495
+ "labels": Array [],
496
+ "viewer": Object {
497
+ "blockedBy": false,
498
+ "muted": false,
499
+ },
500
+ },
501
+ },
502
+ Object {
503
+ "subject": Object {
504
+ "did": "user(3)",
494
505
  "handle": "carol.test",
495
506
  "labels": Array [],
496
507
  "viewer": Object {
@@ -513,9 +524,9 @@ Object {
513
524
  },
514
525
  Object {
515
526
  "subject": Object {
516
- "avatar": "https://bsky.public.url/img/avatar/plain/user(4)/cids(1)@jpeg",
527
+ "avatar": "https://bsky.public.url/img/avatar/plain/user(5)/cids(1)@jpeg",
517
528
  "description": "hi im bob label_me",
518
- "did": "user(3)",
529
+ "did": "user(4)",
519
530
  "displayName": "bobby",
520
531
  "handle": "bob.test",
521
532
  "indexedAt": "1970-01-01T00:00:00.000Z",
@@ -205,7 +205,7 @@ Object {
205
205
  "$type": "app.bsky.embed.images#view",
206
206
  "images": Array [
207
207
  Object {
208
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
208
+ "alt": "tests/sample-img/key-landscape-small.jpg",
209
209
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(4)/cids(5)@jpeg",
210
210
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(4)/cids(5)@jpeg",
211
211
  },
@@ -238,7 +238,7 @@ Object {
238
238
  "$type": "app.bsky.embed.images",
239
239
  "images": Array [
240
240
  Object {
241
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
241
+ "alt": "tests/sample-img/key-landscape-small.jpg",
242
242
  "image": Object {
243
243
  "$type": "blob",
244
244
  "mimeType": "image/jpeg",
@@ -272,7 +272,7 @@ Array [
272
272
  "$type": "app.bsky.embed.images",
273
273
  "images": Array [
274
274
  Object {
275
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
275
+ "alt": "tests/sample-img/key-landscape-small.jpg",
276
276
  "image": Object {
277
277
  "$type": "blob",
278
278
  "mimeType": "image/jpeg",
@@ -716,7 +716,7 @@ Array [
716
716
  "$type": "app.bsky.embed.images",
717
717
  "images": Array [
718
718
  Object {
719
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
719
+ "alt": "tests/sample-img/key-landscape-small.jpg",
720
720
  "image": Object {
721
721
  "$type": "blob",
722
722
  "mimeType": "image/jpeg",
@@ -156,12 +156,12 @@ Array [
156
156
  "$type": "app.bsky.embed.images#view",
157
157
  "images": Array [
158
158
  Object {
159
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
159
+ "alt": "tests/sample-img/key-landscape-small.jpg",
160
160
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(5)/cids(6)@jpeg",
161
161
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(5)/cids(6)@jpeg",
162
162
  },
163
163
  Object {
164
- "alt": "tests/image/fixtures/key-alt.jpg",
164
+ "alt": "tests/sample-img/key-alt.jpg",
165
165
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(5)/cids(7)@jpeg",
166
166
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(5)/cids(7)@jpeg",
167
167
  },
@@ -212,7 +212,7 @@ Array [
212
212
  "$type": "app.bsky.embed.images",
213
213
  "images": Array [
214
214
  Object {
215
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
215
+ "alt": "tests/sample-img/key-landscape-small.jpg",
216
216
  "image": Object {
217
217
  "$type": "blob",
218
218
  "mimeType": "image/jpeg",
@@ -223,7 +223,7 @@ Array [
223
223
  },
224
224
  },
225
225
  Object {
226
- "alt": "tests/image/fixtures/key-alt.jpg",
226
+ "alt": "tests/sample-img/key-alt.jpg",
227
227
  "image": Object {
228
228
  "$type": "blob",
229
229
  "mimeType": "image/jpeg",
@@ -286,12 +286,12 @@ Array [
286
286
  "$type": "app.bsky.embed.images#view",
287
287
  "images": Array [
288
288
  Object {
289
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
289
+ "alt": "tests/sample-img/key-landscape-small.jpg",
290
290
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(5)/cids(6)@jpeg",
291
291
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(5)/cids(6)@jpeg",
292
292
  },
293
293
  Object {
294
- "alt": "tests/image/fixtures/key-alt.jpg",
294
+ "alt": "tests/sample-img/key-alt.jpg",
295
295
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(5)/cids(7)@jpeg",
296
296
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(5)/cids(7)@jpeg",
297
297
  },
@@ -342,7 +342,7 @@ Array [
342
342
  "$type": "app.bsky.embed.images",
343
343
  "images": Array [
344
344
  Object {
345
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
345
+ "alt": "tests/sample-img/key-landscape-small.jpg",
346
346
  "image": Object {
347
347
  "$type": "blob",
348
348
  "mimeType": "image/jpeg",
@@ -353,7 +353,7 @@ Array [
353
353
  },
354
354
  },
355
355
  Object {
356
- "alt": "tests/image/fixtures/key-alt.jpg",
356
+ "alt": "tests/sample-img/key-alt.jpg",
357
357
  "image": Object {
358
358
  "$type": "blob",
359
359
  "mimeType": "image/jpeg",
@@ -73,7 +73,7 @@ Object {
73
73
  "$type": "app.bsky.embed.images#view",
74
74
  "images": Array [
75
75
  Object {
76
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
76
+ "alt": "tests/sample-img/key-landscape-small.jpg",
77
77
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(3)/cids(5)@jpeg",
78
78
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(3)/cids(5)@jpeg",
79
79
  },
@@ -106,7 +106,7 @@ Object {
106
106
  "$type": "app.bsky.embed.images",
107
107
  "images": Array [
108
108
  Object {
109
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
109
+ "alt": "tests/sample-img/key-landscape-small.jpg",
110
110
  "image": Object {
111
111
  "$type": "blob",
112
112
  "mimeType": "image/jpeg",
@@ -310,7 +310,7 @@ Object {
310
310
  "$type": "app.bsky.embed.images#view",
311
311
  "images": Array [
312
312
  Object {
313
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
313
+ "alt": "tests/sample-img/key-landscape-small.jpg",
314
314
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(4)/cids(5)@jpeg",
315
315
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(4)/cids(5)@jpeg",
316
316
  },
@@ -343,7 +343,7 @@ Object {
343
343
  "$type": "app.bsky.embed.images",
344
344
  "images": Array [
345
345
  Object {
346
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
346
+ "alt": "tests/sample-img/key-landscape-small.jpg",
347
347
  "image": Object {
348
348
  "$type": "blob",
349
349
  "mimeType": "image/jpeg",
@@ -551,7 +551,7 @@ Object {
551
551
  "$type": "app.bsky.embed.images#view",
552
552
  "images": Array [
553
553
  Object {
554
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
554
+ "alt": "tests/sample-img/key-landscape-small.jpg",
555
555
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(4)/cids(5)@jpeg",
556
556
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(4)/cids(5)@jpeg",
557
557
  },
@@ -584,7 +584,7 @@ Object {
584
584
  "$type": "app.bsky.embed.images",
585
585
  "images": Array [
586
586
  Object {
587
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
587
+ "alt": "tests/sample-img/key-landscape-small.jpg",
588
588
  "image": Object {
589
589
  "$type": "blob",
590
590
  "mimeType": "image/jpeg",
@@ -1116,7 +1116,7 @@ Object {
1116
1116
  "$type": "app.bsky.embed.images#view",
1117
1117
  "images": Array [
1118
1118
  Object {
1119
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
1119
+ "alt": "tests/sample-img/key-landscape-small.jpg",
1120
1120
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(3)/cids(4)@jpeg",
1121
1121
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(3)/cids(4)@jpeg",
1122
1122
  },
@@ -1149,7 +1149,7 @@ Object {
1149
1149
  "$type": "app.bsky.embed.images",
1150
1150
  "images": Array [
1151
1151
  Object {
1152
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
1152
+ "alt": "tests/sample-img/key-landscape-small.jpg",
1153
1153
  "image": Object {
1154
1154
  "$type": "blob",
1155
1155
  "mimeType": "image/jpeg",
@@ -1319,7 +1319,7 @@ Object {
1319
1319
  "$type": "app.bsky.embed.images#view",
1320
1320
  "images": Array [
1321
1321
  Object {
1322
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
1322
+ "alt": "tests/sample-img/key-landscape-small.jpg",
1323
1323
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(3)/cids(4)@jpeg",
1324
1324
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(3)/cids(4)@jpeg",
1325
1325
  },
@@ -1352,7 +1352,7 @@ Object {
1352
1352
  "$type": "app.bsky.embed.images",
1353
1353
  "images": Array [
1354
1354
  Object {
1355
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
1355
+ "alt": "tests/sample-img/key-landscape-small.jpg",
1356
1356
  "image": Object {
1357
1357
  "$type": "blob",
1358
1358
  "mimeType": "image/jpeg",