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

mac-s-g / react-json-view / #2139

10 Sep 2024 12:50PM UTC coverage: 72.833% (-10.5%) from 83.298%
#2139

push

EdEquipy
update

247 of 349 branches covered (70.77%)

Branch coverage included in aggregate %.

442 of 597 relevant lines covered (74.04%)

28.84 hits per line

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

0.0
/src/js/components/DataTypes/Date.js
1
import React from 'react';
2
import DataTypeLabel from './DataTypeLabel';
3

4
//theme
5
import Theme from './../../themes/getStyle';
6

7
export default class extends React.PureComponent {
8
    render() {
9
        const type_name = 'date';
×
10
        const { props } = this;
×
11
        const display_options = {
×
12
            weekday: 'short',
13
            year: 'numeric',
14
            month: 'short',
15
            day: 'numeric',
16
            hour: '2-digit',
17
            minute: '2-digit'
18
        };
19
        return (
×
20
            <div {...Theme(props.theme, 'date')}>
21
                <DataTypeLabel type_name={type_name} {...props} />
22
                <span class="date-value" {...Theme(props.theme, 'date-value')}>
23
                    {props.value.toLocaleTimeString('en-us', display_options)}
24
                </span>
25
            </div>
26
        );
27
    }
28
}
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