@@ -12,8 +12,8 @@ module.exports = {
12
12
. assert . count ( 'button' , 7 )
13
13
. assert . count ( 'input[type="range"]' , 6 )
14
14
. assert . evaluate ( function ( ) {
15
- var points = stats . map ( function ( stat , i ) {
16
- var point = valueToPoint ( stat . value , i , 6 )
15
+ const points = stats . map ( function ( stat , i ) {
16
+ const point = valueToPoint ( stat . value , i , 6 )
17
17
return point . x + ',' + point . y
18
18
} ) . join ( ' ' )
19
19
return document . querySelector ( 'polygon' ) . attributes [ 0 ] . value === points
@@ -24,8 +24,8 @@ module.exports = {
24
24
. assert . count ( 'button' , 6 )
25
25
. assert . count ( 'input[type="range"]' , 5 )
26
26
. assert . evaluate ( function ( ) {
27
- var points = stats . map ( function ( stat , i ) {
28
- var point = valueToPoint ( stat . value , i , 5 )
27
+ const points = stats . map ( function ( stat , i ) {
28
+ const point = valueToPoint ( stat . value , i , 5 )
29
29
return point . x + ',' + point . y
30
30
} ) . join ( ' ' )
31
31
return document . querySelector ( 'polygon' ) . attributes [ 0 ] . value === points
@@ -37,8 +37,8 @@ module.exports = {
37
37
. assert . count ( 'button' , 7 )
38
38
. assert . count ( 'input[type="range"]' , 6 )
39
39
. assert . evaluate ( function ( ) {
40
- var points = stats . map ( function ( stat , i ) {
41
- var point = valueToPoint ( stat . value , i , 6 )
40
+ const points = stats . map ( function ( stat , i ) {
41
+ const point = valueToPoint ( stat . value , i , 6 )
42
42
return point . x + ',' + point . y
43
43
} ) . join ( ' ' )
44
44
return document . querySelector ( 'polygon' ) . attributes [ 0 ] . value === points
0 commit comments