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

pinojs / pino-pretty / 235 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 15 Aug 2019 05:25PM UTC
Files 5
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Aug 2019 05:24PM UTC coverage: 99.427% (+0.005%) from 99.422%
235.1

push

travis-ci

mcollina
Handle timestamp 0 in prettifyTime (#76)

When trying to format a log object like the following:

```json
{
  "level": 30,
  "time": 0,
  "name": "foobar",
  "msg": "I like cake",
  "v": 1
}
```

pino-pretty previously tried to format the timestamp `undefined` instead of
taking the `0` time. This commit looks not at the truthiness of the value, but
its existence.

148 of 150 branches covered (98.67%)

Branch coverage included in aggregate %.

199 of 199 relevant lines covered (100.0%)

29.87 hits per line

Source Files on job 235.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 151
  • Travis Job 235.1
  • 7f19af0e on github
  • Prev Job for on master (#211.1)
  • Next Job for on master (#236.1)
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