Completed
Push — master ( 70526f...bc6dcb )
by Arthur
26s
created

__tests__/components/Exceptions.test.js   A

Complexity

Total Complexity 3
Complexity/F 1

Size

Lines of Code 11
Function Count 3

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 3
c 1
b 0
f 0
nc 1
mnd 0
bc 3
fnc 3
dl 0
loc 11
rs 10
bpm 1
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A Exceptions.test.js ➔ ??? 0 8 1
1
import React from 'react'
2
import { DataException, EditorException } from '../../src/components/Exceptions.js'
3
4
it('run exceptions correctly', () => {
5
    expect(() => {
6
        throw new DataException()
7
    }).toThrow()
8
    expect(() => {
9
        throw new EditorException()
10
    }).toThrow()
11
})