• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

scriptype / writ-cms / 27473969531

13 Jun 2026 05:32PM UTC coverage: 58.928% (-0.8%) from 59.747%
27473969531

push

github

scriptype
Implement basic content edit

// TODO: Rename node folder name if title changes, instead of just
overriding title in front-matter

644 of 1062 branches covered (60.64%)

Branch coverage included in aggregate %.

0 of 41 new or added lines in 6 files covered. (0.0%)

2 existing lines in 2 files now uncovered.

2237 of 3827 relevant lines covered (58.45%)

1134.33 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/cms/server/router/api/post.js
1
const express = require('express')
×
2

3
module.exports = express.Router()
×
4
  .post('/', async (req, res) => {
5
    try {
×
6
      await req.api.post.create(req.body)
×
7
      res.sendStatus(200)
×
8
    } catch (e) {
9
      console.log('Error creating new post', e)
×
10
      res.status(500).send(e)
×
11
    }
12
  })
13
  .put('/', async (req, res) => {
NEW
14
    try {
×
NEW
15
      await req.api.post.edit(req.body)
×
NEW
16
      res.sendStatus(200)
×
17
    } catch (e) {
NEW
18
      console.log('Error updating post', e)
×
NEW
19
      res.status(500).send(e)
×
20
    }
21
  })
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc