Skip to content

Commit

Permalink
fix some snaps
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Dec 13, 2023
1 parent defb28c commit 4266b3a
Show file tree
Hide file tree
Showing 4 changed files with 167 additions and 162 deletions.
42 changes: 22 additions & 20 deletions packages/bsky/tests/views/__snapshots__/blocks.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ Object {
"did": "user(2)",
"viewer": Object {
"blockedBy": true,
"muted": false,
},
},
"blocked": true,
Expand Down Expand Up @@ -257,30 +258,18 @@ Object {
},
},
"replies": Array [
Object {
"$type": "app.bsky.feed.defs#blockedPost",
"author": Object {
"did": "user(2)",
"viewer": Object {
"blockedBy": false,
"blocking": "record(6)",
},
},
"blocked": true,
"uri": "record(5)",
},
Object {
"$type": "app.bsky.feed.defs#threadViewPost",
"post": Object {
"author": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(4)/cids(1)@jpeg",
"did": "user(3)",
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(1)@jpeg",
"did": "user(2)",
"displayName": "bobby",
"handle": "bob.test",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"following": "record(8)",
"following": "record(6)",
"muted": false,
},
},
Expand All @@ -290,8 +279,8 @@ Object {
"images": Array [
Object {
"alt": "tests/sample-img/key-landscape-small.jpg",
"fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(4)/cids(4)@jpeg",
"thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(4)/cids(4)@jpeg",
"fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(3)/cids(4)@jpeg",
"thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(3)/cids(4)@jpeg",
},
],
},
Expand All @@ -302,15 +291,15 @@ Object {
"cts": "1970-01-01T00:00:00.000Z",
"neg": false,
"src": "did:example:labeler",
"uri": "record(7)",
"uri": "record(5)",
"val": "test-label",
},
Object {
"cid": "cids(3)",
"cts": "1970-01-01T00:00:00.000Z",
"neg": false,
"src": "did:example:labeler",
"uri": "record(7)",
"uri": "record(5)",
"val": "test-label-2",
},
],
Expand Down Expand Up @@ -348,10 +337,23 @@ Object {
},
"replyCount": 1,
"repostCount": 0,
"uri": "record(7)",
"uri": "record(5)",
"viewer": Object {},
},
},
Object {
"$type": "app.bsky.feed.defs#blockedPost",
"author": Object {
"did": "user(4)",
"viewer": Object {
"blockedBy": false,
"blocking": "record(7)",
"muted": false,
},
},
"blocked": true,
"uri": "record(0)",
},
],
},
}
Expand Down
116 changes: 58 additions & 58 deletions packages/bsky/tests/views/__snapshots__/mute-lists.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,13 @@ Object {
"$type": "app.bsky.feed.defs#threadViewPost",
"post": Object {
"author": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(1)@jpeg",
"did": "user(2)",
"handle": "carol.test",
"displayName": "bobby",
"handle": "bob.test",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(8)",
"following": "record(7)",
"muted": true,
"mutedByList": Object {
Expand All @@ -175,12 +176,55 @@ Object {
},
},
"cid": "cids(3)",
"embed": Object {
"$type": "app.bsky.embed.images#view",
"images": Array [
Object {
"alt": "tests/sample-img/key-landscape-small.jpg",
"fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(3)/cids(5)@jpeg",
"thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(3)/cids(5)@jpeg",
},
],
},
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"labels": Array [
Object {
"cid": "cids(3)",
"cts": "1970-01-01T00:00:00.000Z",
"neg": false,
"src": "did:example:labeler",
"uri": "record(5)",
"val": "test-label",
},
Object {
"cid": "cids(3)",
"cts": "1970-01-01T00:00:00.000Z",
"neg": false,
"src": "did:example:labeler",
"uri": "record(5)",
"val": "test-label-2",
},
],
"likeCount": 0,
"record": Object {
"$type": "app.bsky.feed.post",
"createdAt": "1970-01-01T00:00:00.000Z",
"embed": Object {
"$type": "app.bsky.embed.images",
"images": Array [
Object {
"alt": "tests/sample-img/key-landscape-small.jpg",
"image": Object {
"$type": "blob",
"mimeType": "image/jpeg",
"ref": Object {
"$link": "cids(5)",
},
"size": 4114,
},
},
],
},
"reply": Object {
"parent": Object {
"cid": "cids(0)",
Expand All @@ -191,9 +235,9 @@ Object {
"uri": "record(0)",
},
},
"text": "of course",
"text": "hear that label_me label_me_2",
},
"replyCount": 0,
"replyCount": 1,
"repostCount": 0,
"uri": "record(5)",
"viewer": Object {},
Expand All @@ -203,14 +247,13 @@ Object {
"$type": "app.bsky.feed.defs#threadViewPost",
"post": Object {
"author": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(4)/cids(1)@jpeg",
"did": "user(3)",
"displayName": "bobby",
"handle": "bob.test",
"did": "user(4)",
"handle": "carol.test",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"following": "record(10)",
"followedBy": "record(10)",
"following": "record(9)",
"muted": true,
"mutedByList": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
Expand All @@ -225,56 +268,13 @@ Object {
},
},
},
"cid": "cids(5)",
"embed": Object {
"$type": "app.bsky.embed.images#view",
"images": Array [
Object {
"alt": "tests/sample-img/key-landscape-small.jpg",
"fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(4)/cids(6)@jpeg",
"thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(4)/cids(6)@jpeg",
},
],
},
"cid": "cids(6)",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [
Object {
"cid": "cids(5)",
"cts": "1970-01-01T00:00:00.000Z",
"neg": false,
"src": "did:example:labeler",
"uri": "record(9)",
"val": "test-label",
},
Object {
"cid": "cids(5)",
"cts": "1970-01-01T00:00:00.000Z",
"neg": false,
"src": "did:example:labeler",
"uri": "record(9)",
"val": "test-label-2",
},
],
"labels": Array [],
"likeCount": 0,
"record": Object {
"$type": "app.bsky.feed.post",
"createdAt": "1970-01-01T00:00:00.000Z",
"embed": Object {
"$type": "app.bsky.embed.images",
"images": Array [
Object {
"alt": "tests/sample-img/key-landscape-small.jpg",
"image": Object {
"$type": "blob",
"mimeType": "image/jpeg",
"ref": Object {
"$link": "cids(6)",
},
"size": 4114,
},
},
],
},
"reply": Object {
"parent": Object {
"cid": "cids(0)",
Expand All @@ -285,11 +285,11 @@ Object {
"uri": "record(0)",
},
},
"text": "hear that label_me label_me_2",
"text": "of course",
},
"replyCount": 1,
"replyCount": 0,
"repostCount": 0,
"uri": "record(9)",
"uri": "record(8)",
"viewer": Object {},
},
},
Expand Down
Loading

0 comments on commit 4266b3a

Please sign in to comment.