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

microlinkhq / mql / 11120232492

01 Oct 2024 06:58AM UTC coverage: 73.294% (-1.3%) from 74.617%
11120232492

push

github

Kikobeats
fix(build): ensure exports are there

162 of 217 branches covered (74.65%)

Branch coverage included in aggregate %.

837 of 1146 relevant lines covered (73.04%)

7.38 hits per line

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

68.75
/src/node.js
1
const mql = require('./factory')('buffer')({
2✔
2
  MicrolinkError: require('whoops')('MicrolinkError'),
2✔
3
  got: require('got').extend({ headers: { 'user-agent': undefined } }),
2✔
4
  flatten: require('flattie').flattie,
2✔
5
  VERSION: require('../package.json').version
2✔
6
})
2✔
7

2✔
8
module.exports = mql
2✔
9
module.exports.buffer = mql.extend({ responseType: 'buffer' })
2✔
10
module.exports.render = (input, { width = '650px' } = {}) => {
2✔
11
  if (input && input.url && input.type) {
×
12
    return `<img width="${width}" src="${input.url}" />`
×
13
  }
×
14
  return input
×
15
}
×
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

© 2025 Coveralls, Inc