Skip to content

Commit

Permalink
✅ test: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Jul 29, 2023
1 parent eb6576b commit 478c118
Show file tree
Hide file tree
Showing 4 changed files with 8,801 additions and 13 deletions.
6 changes: 5 additions & 1 deletion api/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {

const content = NodeHtmlMarkdown.translate(article?.content || '', {});

res.send({ ...article, content });
const body = { ...article, content };

res.send(body);

return body;
}
12 changes: 0 additions & 12 deletions tests/api.test.ts

This file was deleted.

Loading

0 comments on commit 478c118

Please sign in to comment.