Test Report

0
0
4
7
ID Title Duration (ms)
1 FluxConstant it loads 3
2 FluxConstant it creates a new constant 0
3 FluxConstant it demonstrates string casting 1
4 FluxConstant it creates a set of constants 0

Code Coverage Report

100%
14
14
0

index.js

100%
14
14
0
Line Hits Source
1 1 var FluxConstant = function FluxConstant(name) {
2
3 5 this.name = name;
4 };
5
6
7 1 FluxConstant.prototype.toString = function () {
8
9 4 return this.name;
10 };
11
12
13 1 FluxConstant.set = function (list) {
14
15 1 var set = {};
16
17 1 list.forEach(function (item) {
18
19 3 set[item] = new FluxConstant(item);
20 });
21
22 1 return set;
23 };
24
25
26 1 module.exports = FluxConstant;
27