MCPcopy Index your code
hub / github.com/WP-API/node-wpapi / getPostsAndAuthors

Function getPostsAndAuthors

tests/integration/comments.js:62–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60// Inspecting the posts and authors of the returned comments arrays is an easy
61// way to validate that the right page of results was returned
62const getPostsAndAuthors = comments => comments
63 .map( comment => comment.post + comment.author_name );
64
65describe( 'integration: comments()', () => {
66 let wp;

Callers 1

comments.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected