two-fer/two-fer.spec.js   A
last analyzed

Complexity

Total Complexity 4
Complexity/F 1

Size

Lines of Code 15
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 15
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10
1
import { twoFer } from './two-fer'
2
3
describe('twoFer()', () => {
4
  test('no name given', () => {
5
    expect(twoFer()).toEqual("One for you, one for me.")
6
  })
7
8
  test('a name given', () => {
9
    expect(twoFer("Alice")).toEqual("One for Alice, one for me.")
10
  })
11
12
  test('another name given', () => {
13
    expect(twoFer("Bob")).toEqual("One for Bob, one for me.")
14
  })
15
})
16