Passed
Push — master ( d06fb8...9f4cb8 )
by André
03:15 queued 01:29
created

spec/out.js   A

Complexity

Total Complexity 3
Complexity/F 1

Size

Lines of Code 29
Function Count 3

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 12
mnd 0
bc 0
fnc 3
dl 0
loc 29
rs 10
bpm 0
cpm 1
noi 1
c 0
b 0
f 0
1
'use strict'
2
3
const chai = require('chai')
4
const expect = chai.expect
5
6
const out = require('../src/out.js')
0 ignored issues
show
Unused Code introduced by
The constant out seems to be never used. Consider removing it.
Loading history...
7
const fixtureConfiguration = require('./fixtures/configuration/defaults.json')
8
9
/**
10
 * Test behavior
11
 *
12
 * 1. Test sourceConfiguration
13
 * - source: url, password
14
 * - params: payload, topic
15
 * 2. Test to send payloads
16
 * 3. Test callback to send status
17
 */
18
describe('out', () => {
19
20
	beforeEach((done) => {
21
		this.configuration = JSON.parse(JSON.stringify(fixtureConfiguration))
22
		done()
23
	})
24
25
	afterEach((done) => {
26
		delete this.configuration
27
		done()
28
	})
29
})
30