travis-ci
1167 of 1464 branches covered (79.71%)
25 of 25 new or added lines in 4 files covered. (100.0%)
3103 of 3325 relevant lines covered (93.32%)
492.03 hits per line
1 |
var pluckOnlyDescendantOf = require("./pluck_only_descendant_of"); |
4✔ |
2 |
|
|
3 |
/*
|
|
4 |
* Unbundle dependencies that are marked as bundle: false |
|
5 |
*/ |
|
6 |
module.exports = function(dependencyGraph){ |
4✔ |
7 |
var graphs = [];
|
499✔ |
8 |
|
|
9 |
var node, unbundledGraph;
|
499✔ |
10 |
for(var name in dependencyGraph){ |
499✔ |
11 |
node = dependencyGraph[name]; |
1,925✔ |
12 |
if(node && node.load.metadata && node.load.metadata.sideBundle) {
|
|
13 |
unbundledGraph = pluckOnlyDescendantOf(dependencyGraph, name); |
6 all except 3249.4 ✔ |
14 |
markBundleOf(unbundledGraph, name); |
6 all except 3249.4 ✔ |
15 |
graphs.push(unbundledGraph); |
6 all except 3249.4 ✔ |
16 |
} |
|
17 |
} |
|
18 |
|
|
19 |
return graphs;
|
499✔ |
20 |
}; |
|
21 |
|
|
22 |
function markBundleOf(graph, bundleName){ |
4✔ |
23 |
for(var name in graph) { |
6 all except 3249.4 ✔ |
24 |
graph[name].bundles = [bundleName]; |
15 all except 3249.4 ✔ |
25 |
} |
|
26 |
} |