github
819 of 1842 branches covered (44.46%)
9 of 9 new or added lines in 1 file covered. (100.0%)
1345 existing lines in 27 files now uncovered.996 of 2342 relevant lines covered (42.53%)
76.9 hits per line
| 1 |
export function key(id) { |
|
|
UNCOV
2
|
this.id = id;
|
× |
|
UNCOV
3
|
return this; |
× |
| 4 |
} |
|
| 5 |
|
|
| 6 |
export function style(...styles) { |
|
|
UNCOV
7
|
this.styleSheets = this.styleSheets || []; |
|
|
UNCOV
8
|
this.styleSheets.push(...styles);
|
× |
| 9 |
|
|
|
UNCOV
10
|
return this; |
× |
| 11 |
} |
|
| 12 |
|
|
| 13 |
export function css(parts, ...args) { |
|
|
UNCOV
14
|
this.styleSheets = this.styleSheets || []; |
|
| 15 |
|
|
|
UNCOV
16
|
let result = parts[0];
|
× |
|
UNCOV
17
|
for (let index = 1; index < parts.length; index++) { |
× |
|
UNCOV
18
|
result += |
× |
| 19 |
(args[index - 1] !== undefined ? args[index - 1] : "") + parts[index]; |
|
| 20 |
} |
|
| 21 |
|
|
|
UNCOV
22
|
this.styleSheets.push(result);
|
× |
| 23 |
|
|
|
UNCOV
24
|
return this; |
× |
| 25 |
} |
|
| 26 |
|
|
| 27 |
export function use(plugin) { |
|
|
UNCOV
28
|
this.plugins = this.plugins || []; |
|
|
UNCOV
29
|
this.plugins.push(plugin);
|
× |
| 30 |
|
|
|
UNCOV
31
|
return this; |
× |
| 32 |
} |