travis-ci
4670 of 5656 branches covered (82.57%)
13 of 13 new or added lines in 2 files covered. (100.0%)
10412 of 11525 relevant lines covered (90.34%)
5850.54 hits per line
1 |
var extend = require("raptor-util/extend"); |
8 only 2387.2 ✔ |
2 |
|
|
3 |
function removePreservedAttributes(attrs, props) { |
|
4 |
var preservedAttrs = props && props.noupdate;
|
|
5 |
if (preservedAttrs) {
|
|
6 |
attrs = extend({}, attrs); |
30 only 2387.2 ✔ |
7 |
preservedAttrs.forEach(function(preservedAttrName) {
|
30 only 2387.2 ✔ |
8 |
delete attrs[preservedAttrName];
|
34 only 2387.2 ✔ |
9 |
}); |
|
10 |
} |
|
11 |
|
|
12 |
return attrs;
|
1,289 only 2387.2 ✔ |
13 |
} |
|
14 |
|
|
15 |
require("./VElement").___removePreservedAttributes = removePreservedAttributes;
|
8 only 2387.2 ✔ |