@apica-io/url-xi
Version:
URL Check for integrations and API monitoring
25 lines (11 loc) • 549 B
JavaScript
let ats = uxs.getATS()
uxs.expect(ats, `ATS must be defined`).not.to.be.undefined;
let posts = uxs.getMustacheExpression("{{$data.posts}}")
uxs.expect(posts, `Post table must be defined`).not.to.be.undefined;
logger.info(`Size of the post data table is ${posts.length}`)
posts.forEach(post => {
let id = post.id, title = post.title, body = post.body
logger.info("Post id=%s,title=%s,body=%s", id, title, body)
var columns = ["id", "title", "body", "ts"]
var values = [id, title, body, Date.now().toString()]
});