Completed
Push — master ( 85cc88...392ae4 )
by Arthur
36s
created

__tests__/components/Helpers.test.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 8
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A Helpers.test.js ➔ ??? 0 5 1
1
import React from 'react'
2
import { t } from '../../src/components/Helpers'
3
4
describe('to translate string correctly', () => {
5
    test('has changed to Foo baz baz', () => {
6
        expect(t('Foo {{bar}} baz', { 'bar': 'baz' })).toBe('Foo baz baz')
7
    })
8
})