Passed
Push — master ( 8c565d...3915db )
by Michael
04:19 queued 13s
created

T_CONST   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 1
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
nc 1
dl 0
loc 1
rs 10
c 1
b 0
f 0
wmc 1
noi 0
mnd 0
bc 1
fnc 1
bpm 1
cpm 1
1
import { Node } from 'prosemirror-model';
2
import schema from '../script/schema.js';
3
4
function testJsonAgainstSchema(jsonInput) {
5
    const node = Node.fromJSON(schema, JSON.parse(jsonInput));
6
    node.check();
7
}
8
9
export default testJsonAgainstSchema;
10