src/__tests__/index.js   A
last analyzed

Complexity

Total Complexity 4
Complexity/F 1

Size

Lines of Code 13
Function Count 4

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 8
mnd 0
bc 0
fnc 4
dl 0
loc 13
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
1
import join from 'index';
2
3
describe('join', () => {
4
  it('works if input is string', () => {
5
    const result = join('hello', 'world');
6
    expect(result).toBe('hello world');
7
  });
8
9
  it('would fail if input is not string', () => {
10
    const corrupted = () => join(2, 'yes');
11
    expect(corrupted).toThrowErrorMatchingSnapshot();
12
  });
13
});
14