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

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

pending completion
#1222

push

web-flow
Merge pull request #342 from mac-s-g/bump-patch

bump patch version

229 of 349 branches covered (65.62%)

Branch coverage included in aggregate %.

396 of 597 relevant lines covered (66.33%)

25.49 hits per line

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

80.0
/src/js/components/ValidationFailure.js
1
import React from 'react';
2
import dispatcher from './../helpers/dispatcher';
3
import ObjectAttributes from './../stores/ObjectAttributes';
4

5
import { Add as Clear } from './icons';
6

7
//global theme
8
import Theme from './../themes/getStyle';
9

10
//this input appears when adding a new value to an object
11
export default class extends React.PureComponent {
12
    render() {
13
        const { message, active, theme, rjvId } = this.props;
7✔
14

15
        return active ? (
7✔
16
            <div
17
                class="validation-failure"
18
                {...Theme(theme, 'validation-failure')}
19
                onClick={() => {
20
                    dispatcher.dispatch({
×
21
                        rjvId: rjvId,
22
                        name: 'RESET'
23
                    });
24
                }}
25
            >
26
                <span {...Theme(theme, 'validation-failure-label')}>
27
                    {message}
28
                </span>
29
                <Clear {...Theme(theme, 'validation-failure-clear')} />
30
            </div>
31
        ) : null;
32
    }
33
}
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