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

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

18 Mar 2024 12:10PM UTC coverage: 15.895% (-67.3%) from 83.209%
#2963

push

loredanacirstea
1.21.6

57 of 368 branches covered (15.49%)

Branch coverage included in aggregate %.

101 of 626 relevant lines covered (16.13%)

0.85 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