Skip to content

Commit

Permalink
fix(endpoint-micropub): creating posts with single media property
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Jan 10, 2021
1 parent 042df53 commit 901ad93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/endpoint-micropub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"directory": "packages/endpoint-micropub"
},
"dependencies": {
"@paulrobertlloyd/mf2tojf2": "^0.4.0",
"@paulrobertlloyd/mf2tojf2": "^0.4.1",
"@sindresorhus/slugify": "^1.1.0",
"date-fns": "^2.16.1",
"date-fns-tz": "^1.0.12",
Expand Down
7 changes: 5 additions & 2 deletions packages/endpoint-micropub/tests/lib/controllers/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test.beforeEach(async t => {
t.context.request = request.post('/micropub');
});

test.serial.only('Creates post (form-encoded)', async t => {
test.serial('Creates post (form-encoded)', async t => {
const authScope = nock('https://tokens.indieauth.com')
.get('/token')
.reply(200, {
Expand Down Expand Up @@ -67,7 +67,10 @@ test.serial('Creates post (JSON)', async t => {
properties: {
name: ['Foobar'],
content: ['Micropub test of creating an h-entry with a JSON request containing multiple categories.'],
photo: ['https://website.example/photo.jpg'],
photo: [{
value: 'https://website.example/photo.jpg',
alt: 'Example photo'
}],
category: ['test1', 'test2']
}
});
Expand Down

0 comments on commit 901ad93

Please sign in to comment.