Completed
Push — master ( 27b20f...cb95fb )
by greg
49s
created

test/locale.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 21
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 21
rs 10
wmc 2
mnd 0
bc 2
fnc 2
bpm 1
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A locale.js ➔ describe(ꞌlocaleꞌ) 0 13 1
1
var chai = require('chai');
2
var path = require('path');
3
4
var config = require('../src/cli').config
5
config.set({root: path.join(__dirname, 'fixtures')})
6
7
import locale from '../src/server/helpers/abe-locale'
8
9
describe('locale', function() {
10
11
  /**
12
   * locale
13
   * 
14
   */
15
  it('locale', function() {
16
    chai.expect(locale).to.have.property('word')
17
    chai.expect(locale.word).to.be.a('string')
18
    chai.expect(locale.word).to.equal('a word')
19
  });
20
21
});
22