github
611 of 1778 branches covered (34.36%)
69 of 97 new or added lines in 9 files covered. (71.13%)
1169 existing lines in 25 files now uncovered.1049 of 2247 relevant lines covered (46.68%)
32.63 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 |
} |