created:3/5/2021
updated:3/5/2021
loc
48
comments
13%
passed
14
coverage
33%
Source
Syntax highliting source code component. Uses prism for the actual source display.
Status | Full name | Title | Time(ms) | |
---|---|---|---|---|
Source.test.ts(14 tests) | ||||
passed | Source > overview > 1 | snapshot | 817 | |
passed | Source > overview > 1 | accessibility | 314 | |
passed | Source > overview > 2 | snapshot | 64 | |
passed | Source > overview > 2 | accessibility | 202 | |
passed | Source > overview > 3 | snapshot | 77 | |
passed | Source > overview > 3 | accessibility | 233 | |
passed | Source > overview > 4 | snapshot | 91 | |
passed | Source > overview > 4 | accessibility | 236 | |
passed | Source > overview > 5 | snapshot | 107 |
total 14 tests
Kind | Total | Covered | Skipped | % | |
---|---|---|---|---|---|
Source.tsx | |||||
lines | 17 | 12 | 0 | 70.58% | |
functions | 3 | 1 | 0 | 33.33% | |
statements | 19 | 13 | 0 | 68.42% | |
branches | 7 | 4 | 0 | 57.14% |
export const sample = () => {const [state, setState] = React.useState(false);return (<BooleanEditorname="prop"onChange={(name, newVal) => setState(newVal)}prop={{ type: ControlTypes.BOOLEAN, value: state }}/>);};
export const sample = () => {const [state, setState] = React.useState(false);return (<BooleanEditorname="prop"onChange={(name, newVal) => setState(newVal)}prop={{ type: ControlTypes.BOOLEAN, value: state }}/>);};
export const sample = () => {const [state, setState] = React.useState(false);return (<BooleanEditorname="prop"onChange={(name, newVal) => setState(newVal)}prop={{ type: ControlTypes.BOOLEAN, value: state }}/>);};
export const sample = () => {const [state, setState] = React.useState(false);return (<BooleanEditorname="prop"onChange={(name, newVal) => setState(newVal)}prop={{ type: ControlTypes.BOOLEAN, value: state }}/>);};
export const sample = () => {const [state, setState] = React.useState(false);return (<BooleanEditorname="prop"onChange={(name, newVal) => setState(newVal)}prop={{ type: ControlTypes.BOOLEAN, value: state }}/>);};