I ate a cheese sandwich, which was nice.
+diff --git a/indiekit/helpers/fixtures/file-types/audio.mp3 b/indiekit/helpers/fixtures/file-types/audio.mp3 new file mode 100644 index 00000000..e9915d83 Binary files /dev/null and b/indiekit/helpers/fixtures/file-types/audio.mp3 differ diff --git a/indiekit/helpers/fixtures/file-types/font.ttf b/indiekit/helpers/fixtures/file-types/font.ttf new file mode 100755 index 00000000..6d9b3972 Binary files /dev/null and b/indiekit/helpers/fixtures/file-types/font.ttf differ diff --git a/indiekit/helpers/fixtures/file-types/photo.jpg b/indiekit/helpers/fixtures/file-types/photo.jpg new file mode 100644 index 00000000..6efc712d Binary files /dev/null and b/indiekit/helpers/fixtures/file-types/photo.jpg differ diff --git a/indiekit/helpers/fixtures/file-types/video.mp4 b/indiekit/helpers/fixtures/file-types/video.mp4 new file mode 100644 index 00000000..a203d0cd Binary files /dev/null and b/indiekit/helpers/fixtures/file-types/video.mp4 differ diff --git a/indiekit/helpers/fixtures/html/client-simple.html b/indiekit/helpers/fixtures/html/client-simple.html new file mode 100644 index 00000000..d9f850d3 --- /dev/null +++ b/indiekit/helpers/fixtures/html/client-simple.html @@ -0,0 +1,11 @@ + + +
++ Another client +
+ + +
+
+
+
+
I ate a cheese sandwich, which was nice.
+ + + diff --git a/indiekit/helpers/fixtures/html/post.html b/indiekit/helpers/fixtures/html/post.html new file mode 100644 index 00000000..a9781036 --- /dev/null +++ b/indiekit/helpers/fixtures/html/post.html @@ -0,0 +1,14 @@ + + + +I ate a cheese sandwich, which was nice.
+I ate a cheese sandwich, which was nice.
", + "text": "I ate a [cheese](https://en.wikipedia.org/wiki/Cheese) sandwich, which was nice." + }, + "summary": "A very satisfactory meal.", + "published": "2020-02-02", + "category": ["lunch", "food"], + "audio": [{ + "url": "https://website.example/audio.mp3" + }], + "photo": [{ + "alt": "Alternative text", + "url": "https://website.example/photo.jpg" + }], + "video": [{ + "url": "https://website.example/video.mp4" + }], + "start": "2020-02-02", + "end": "2020-02-20", + "rsvp": "Yes", + "location": { + "type": "geo", + "latitude": "37.780080", + "longitude": "-122.420160", + "name": "37° 46′ 48.29″ N 122° 25′ 12.576″ W" + }, + "bookmark-of": "https://website.example", + "like-of": "https://website.example", + "repost-of": "https://website.example", + "in-reply-to": "https://website.example", + "post-status": "draft", + "visibility": "private", + "syndication": "https://website.example/post/12345", + "mp-slug": "cheese-sandwich", + "mp-syndicate-to": "https://mastodon.example" +} diff --git a/indiekit/helpers/fixtures/jf2/article-content-missing.jf2 b/indiekit/helpers/fixtures/jf2/article-content-missing.jf2 new file mode 100644 index 00000000..410a7e24 --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/article-content-missing.jf2 @@ -0,0 +1,4 @@ +{ + "type": "entry", + "name": "What I had for lunch" +} diff --git a/indiekit/helpers/fixtures/jf2/article-content-provided-html-text.jf2 b/indiekit/helpers/fixtures/jf2/article-content-provided-html-text.jf2 new file mode 100644 index 00000000..e1fe021e --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/article-content-provided-html-text.jf2 @@ -0,0 +1,9 @@ +{ + "type": "entry", + "name": "What I had for lunch", + "content": { + "html": "I
atehad a cheese sandwich from https://cafe.example, which was > 10.
– Me, then.
", + "text": "> II
atehad a cheese sandwich from https://cafe.example, which was > 10.
– Me, then.
" + }, + "url": "https://foo.bar/lunchtime" +} diff --git a/indiekit/helpers/fixtures/jf2/article-content-provided-text.jf2 b/indiekit/helpers/fixtures/jf2/article-content-provided-text.jf2 new file mode 100644 index 00000000..5556771c --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/article-content-provided-text.jf2 @@ -0,0 +1,7 @@ +{ + "type": "entry", + "name": "What I had for lunch", + "content": { + "text": "> IThis second item has all fields.
" + }, + "summary": "This is the second item", + "featured": "https://another.example/banner_image.jpg", + "published": "2020-12-31T17:05:55+00:00", + "updated": "2021-01-01T12:05:55+00:00", + "author": { + "name": "Joe Bloggs", + "url": "https://website.example/~joebloggs", + "photo": "https://website.example/~joebloggs/photo.jpg" + }, + "category": ["second", "example"], + "audio": [{ + "url": "https://website.example/second-item/audio.weba", + "alt": "Audio", + "content-type": "audio/webm" + }], + "photo": [{ + "url": "https://website.example/second-item/photo.webp", + "alt": "Photo", + "content-type": "image/webp" + }], + "video": [{ + "url": "https://website.example/second-item/audio.webm", + "alt": "Video", + "content-type": "video/webm" + }] + }, { + "type": "entry", + "uid": "https://website.example/first-item/", + "url": "https://website.example/first-item/", + "content": { + "text": "This first item has only the required fields." + } + }] +} diff --git a/indiekit/helpers/fixtures/jf2/note-content-provided-html-with-link.jf2 b/indiekit/helpers/fixtures/jf2/note-content-provided-html-with-link.jf2 new file mode 100644 index 00000000..3b68660c --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/note-content-provided-html-with-link.jf2 @@ -0,0 +1,6 @@ +{ + "type": "entry", + "content": { + "html": "" + } +} diff --git a/indiekit/helpers/fixtures/jf2/note-content-provided-html-with-mastodon-link.jf2 b/indiekit/helpers/fixtures/jf2/note-content-provided-html-with-mastodon-link.jf2 new file mode 100644 index 00000000..c6437b8a --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/note-content-provided-html-with-mastodon-link.jf2 @@ -0,0 +1,6 @@ +{ + "type": "entry", + "content": { + "html": "I ate a cheese sandwich, which was > 10.
I ate @cheese’s sandwich, which was nice.
" + } +} diff --git a/indiekit/helpers/fixtures/jf2/note-content-provided-html.jf2 b/indiekit/helpers/fixtures/jf2/note-content-provided-html.jf2 new file mode 100644 index 00000000..aa1b3ed8 --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/note-content-provided-html.jf2 @@ -0,0 +1,7 @@ +{ + "type": "entry", + "content": { + "html": "" + }, + "url": "https://foo.bar/lunchtime" +} diff --git a/indiekit/helpers/fixtures/jf2/note-location-provided.jf2 b/indiekit/helpers/fixtures/jf2/note-location-provided.jf2 new file mode 100644 index 00000000..8b84417a --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/note-location-provided.jf2 @@ -0,0 +1,13 @@ +{ + "type": "entry", + "content": { + "html": "I ate a cheese sandwich, which was > 10.
I ate a cheese sandwich right here!
", + "text": "I ate a cheese sandwich right here!" + }, + "location": { + "type": "geo", + "latitude": "37.780080", + "longitude": "-122.420160", + "name": "37° 46′ 48.29″ N 122° 25′ 12.576″ W" + } +} diff --git a/indiekit/helpers/fixtures/jf2/note-published-missing.jf2 b/indiekit/helpers/fixtures/jf2/note-published-missing.jf2 new file mode 100644 index 00000000..c6375e3a --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/note-published-missing.jf2 @@ -0,0 +1,4 @@ +{ + "type": "entry", + "content": "I ate a cheese sandwich, which was nice." +} diff --git a/indiekit/helpers/fixtures/jf2/note-published-provided-short.jf2 b/indiekit/helpers/fixtures/jf2/note-published-provided-short.jf2 new file mode 100644 index 00000000..cb0e0b31 --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/note-published-provided-short.jf2 @@ -0,0 +1,5 @@ +{ + "type": "entry", + "content": "I ate a cheese sandwich, which was nice.", + "published": "2019-01-02" +} diff --git a/indiekit/helpers/fixtures/jf2/note-published-provided.jf2 b/indiekit/helpers/fixtures/jf2/note-published-provided.jf2 new file mode 100644 index 00000000..b32b37ed --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/note-published-provided.jf2 @@ -0,0 +1,5 @@ +{ + "type": "entry", + "content": "I ate a cheese sandwich, which was nice.", + "published": "2019-01-02T03:04:05.678Z" +} diff --git a/indiekit/helpers/fixtures/jf2/note-slug-missing-no-name.jf2 b/indiekit/helpers/fixtures/jf2/note-slug-missing-no-name.jf2 new file mode 100644 index 00000000..c6375e3a --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/note-slug-missing-no-name.jf2 @@ -0,0 +1,4 @@ +{ + "type": "entry", + "content": "I ate a cheese sandwich, which was nice." +} diff --git a/indiekit/helpers/fixtures/jf2/note-slug-provided-unslugified.jf2 b/indiekit/helpers/fixtures/jf2/note-slug-provided-unslugified.jf2 new file mode 100644 index 00000000..40e0389e --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/note-slug-provided-unslugified.jf2 @@ -0,0 +1,5 @@ +{ + "type": "entry", + "content": "I ate a cheese sandwich, which was nice.", + "mp-slug": "Cheese sandwich" +} diff --git a/indiekit/helpers/fixtures/jf2/note-slug-provided.jf2 b/indiekit/helpers/fixtures/jf2/note-slug-provided.jf2 new file mode 100644 index 00000000..afaec458 --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/note-slug-provided.jf2 @@ -0,0 +1,5 @@ +{ + "type": "entry", + "content": "I ate a cheese sandwich, which was nice.", + "mp-slug": "cheese-sandwich" +} diff --git a/indiekit/helpers/fixtures/jf2/note-visibility-unlisted.jf2 b/indiekit/helpers/fixtures/jf2/note-visibility-unlisted.jf2 new file mode 100644 index 00000000..942b7a38 --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/note-visibility-unlisted.jf2 @@ -0,0 +1,7 @@ +{ + "type": "entry", + "content": { + "html": "I ate a cheese sandwich, which was nice.
" + }, + "visibility": "unlisted" +} diff --git a/indiekit/helpers/fixtures/jf2/photo-provided-mp-photo-alt.jf2 b/indiekit/helpers/fixtures/jf2/photo-provided-mp-photo-alt.jf2 new file mode 100644 index 00000000..9f481dea --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/photo-provided-mp-photo-alt.jf2 @@ -0,0 +1,9 @@ +{ + "type": "entry", + "name": "Photo", + "photo": [ + "https://website.example/baz.jpg", + "https://foo.bar/qux.jpg" + ], + "mp-photo-alt": ["Baz", "Qux"] +} diff --git a/indiekit/helpers/fixtures/jf2/photo-provided-string-value.jf2 b/indiekit/helpers/fixtures/jf2/photo-provided-string-value.jf2 new file mode 100644 index 00000000..2e918354 --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/photo-provided-string-value.jf2 @@ -0,0 +1,5 @@ +{ + "type": "entry", + "name": "Photo", + "photo": "https://website.example/baz.jpg" +} diff --git a/indiekit/helpers/fixtures/jf2/photo-provided-value-alt.jf2 b/indiekit/helpers/fixtures/jf2/photo-provided-value-alt.jf2 new file mode 100644 index 00000000..f74b74f6 --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/photo-provided-value-alt.jf2 @@ -0,0 +1,11 @@ +{ + "type": "entry", + "name": "Photo", + "photo": [{ + "alt": "Baz", + "url": "https://website.example/baz.jpg" + }, { + "alt": " Qux ", + "url": "https://foo.bar/qux.jpg" + }] +} diff --git a/indiekit/helpers/fixtures/jf2/photo-provided.jf2 b/indiekit/helpers/fixtures/jf2/photo-provided.jf2 new file mode 100644 index 00000000..3ee07e16 --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/photo-provided.jf2 @@ -0,0 +1,8 @@ +{ + "type": "entry", + "name": "Photo", + "photo": [ + "https://website.example/baz.jpg", + "https://foo.bar/qux.jpg" + ] +} diff --git a/indiekit/helpers/fixtures/jf2/post-template-properties.jf2 b/indiekit/helpers/fixtures/jf2/post-template-properties.jf2 new file mode 100644 index 00000000..7d5a71da --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/post-template-properties.jf2 @@ -0,0 +1,37 @@ +{ + "type": "entry", + "url": "https://website.example/posts/cheese-sandwich", + "name": "What I had for lunch", + "content": { + "html": "I ate a cheese sandwich, which was nice.
", + "text": "I ate a [cheese](https://en.wikipedia.org/wiki/Cheese) sandwich, which was nice." + }, + "summary": "A very satisfactory meal.", + "published": "2020-02-02", + "category": ["lunch", "food"], + "audio": [{ + "url": "https://website.example/audio.mp3" + }], + "photo": [{ + "alt": "Alternative text", + "url": "https://website.example/photo.jpg" + }], + "video": [{ + "url": "https://website.example/video.mp4" + }], + "start": "2020-02-02", + "end": "2020-02-20", + "rsvp": "Yes", + "location": { + "type": "geo", + "latitude": "37.780080", + "longitude": "-122.420160", + "name": "37° 46′ 48.29″ N 122° 25′ 12.576″ W" + }, + "bookmark-of": "https://website.example", + "like-of": "https://website.example", + "repost-of": "https://website.example", + "in-reply-to": "https://website.example", + "visibility": "private", + "syndication": "https://website.example/post/12345" +} diff --git a/indiekit/helpers/fixtures/jf2/reply-mastodon.jf2 b/indiekit/helpers/fixtures/jf2/reply-mastodon.jf2 new file mode 100644 index 00000000..9112448c --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/reply-mastodon.jf2 @@ -0,0 +1,8 @@ +{ + "type": "entry", + "content": { + "html": "I ate a cheese sandwich too!
", + "text": "I ate a cheese sandwich too!" + }, + "in-reply-to": "https://mastodon.example/@username/1234567890987654321" +} diff --git a/indiekit/helpers/fixtures/jf2/reply-off-service.jf2 b/indiekit/helpers/fixtures/jf2/reply-off-service.jf2 new file mode 100644 index 00000000..4840d9a5 --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/reply-off-service.jf2 @@ -0,0 +1,8 @@ +{ + "type": "entry", + "content": { + "html": "I ate a cheese sandwich too!
", + "text": "I ate a cheese sandwich too!" + }, + "in-reply-to": "https://deadbird.example/username/1234567890987654321" +} diff --git a/indiekit/helpers/fixtures/jf2/repost-mastodon.jf2 b/indiekit/helpers/fixtures/jf2/repost-mastodon.jf2 new file mode 100644 index 00000000..fb6ee396 --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/repost-mastodon.jf2 @@ -0,0 +1,8 @@ +{ + "type": "entry", + "content": { + "html": "Someone else who likes cheese sandwiches.
", + "text": "Someone else who likes cheese sandwiches." + }, + "repost-of": "https://mastodon.example/@username/1234567890987654321" +} diff --git a/indiekit/helpers/fixtures/jf2/video-provided-string-value.jf2 b/indiekit/helpers/fixtures/jf2/video-provided-string-value.jf2 new file mode 100644 index 00000000..15df3f41 --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/video-provided-string-value.jf2 @@ -0,0 +1,5 @@ +{ + "type": "entry", + "name": "Video", + "video": "https://website.example/baz.mp4" +} diff --git a/indiekit/helpers/fixtures/jf2/video-provided-value.jf2 b/indiekit/helpers/fixtures/jf2/video-provided-value.jf2 new file mode 100644 index 00000000..7f718d6e --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/video-provided-value.jf2 @@ -0,0 +1,9 @@ +{ + "type": "entry", + "name": "Video", + "video": [{ + "url": "https://website.example/baz.mp4" + }, { + "url": "https://foo.bar/qux.mp4" + }] +} diff --git a/indiekit/helpers/fixtures/jf2/video-provided.jf2 b/indiekit/helpers/fixtures/jf2/video-provided.jf2 new file mode 100644 index 00000000..c859f53a --- /dev/null +++ b/indiekit/helpers/fixtures/jf2/video-provided.jf2 @@ -0,0 +1,8 @@ +{ + "type": "entry", + "name": "Video", + "video": [ + "https://website.example/baz.mp4", + "https://foo.bar/qux.mp4" + ] +} diff --git a/indiekit/helpers/fixtures/package.json b/indiekit/helpers/fixtures/package.json new file mode 100644 index 00000000..caa31780 --- /dev/null +++ b/indiekit/helpers/fixtures/package.json @@ -0,0 +1,7 @@ +{ + "name": "@indiekit-test/fixtures", + "main": "index.js", + "type": "module", + "private": true, + "license": "MIT" +}