@@ -8,7 +8,6 @@ describe('the `or()` operator function', () => {
8
8
9
9
const controlUndefined : Control < number > = {
10
10
label : '' ,
11
- icons : [ ] ,
12
11
query : ( ) => undefined ,
13
12
}
14
13
@@ -20,13 +19,11 @@ describe('the `or()` operator function', () => {
20
19
21
20
const controlTrue : Control < boolean > = {
22
21
label : '' ,
23
- icons : [ ] ,
24
22
query : ( ) => true ,
25
23
}
26
24
27
25
const controlFalse : Control < boolean > = {
28
26
label : '' ,
29
- icons : [ ] ,
30
27
query : ( ) => false ,
31
28
}
32
29
@@ -48,13 +45,11 @@ describe('the `or()` operator function', () => {
48
45
49
46
const controlThree : Control < number > = {
50
47
label : '' ,
51
- icons : [ ] ,
52
48
query : ( ) => 3 ,
53
49
}
54
50
55
51
const controlFour : Control < number > = {
56
52
label : '' ,
57
- icons : [ ] ,
58
53
query : ( ) => 4 ,
59
54
}
60
55
@@ -73,14 +68,12 @@ describe('the `or()` operator function', () => {
73
68
74
69
const controlGamepad : Control < number > = {
75
70
label : 'gamepad' ,
76
- icons : [ 'gamepad' ] ,
77
71
query : null ,
78
72
fromGamepad : true ,
79
73
}
80
74
81
75
const controlNonGamepad : Control < number > = {
82
76
label : 'non-gamepad' ,
83
- icons : [ 'non-gamepad' ] ,
84
77
query : null ,
85
78
}
86
79
@@ -92,10 +85,6 @@ describe('the `or()` operator function', () => {
92
85
expect ( or ( controlGamepad , controlNonGamepad ) . label ) . to . equal ( 'non-gamepad' )
93
86
} )
94
87
95
- it ( 'return the icons of the first non-gamepad control' , ( ) => {
96
- expect ( or ( controlGamepad , controlNonGamepad ) . icons [ 0 ] ) . to . equal ( 'non-gamepad' )
97
- } )
98
-
99
88
} )
100
89
101
90
describe ( 'is `true`' , ( ) => {
@@ -106,28 +95,19 @@ describe('the `or()` operator function', () => {
106
95
expect ( or ( controlGamepad , controlNonGamepad ) . label ) . to . equal ( 'gamepad' )
107
96
} )
108
97
109
- it ( 'return the icons of the first gamepad control' , ( ) => {
110
- expect ( or ( controlGamepad , controlNonGamepad ) . icons [ 0 ] ) . to . equal ( 'gamepad' )
111
- } )
112
-
113
98
} )
114
99
115
100
describe ( 'is `true` or `false` and no gamepad control is passed in' , ( ) => {
116
101
117
102
const controlFirst : Control < number > = {
118
103
label : 'first' ,
119
- icons : [ 'first' ] ,
120
104
query : null ,
121
105
}
122
106
123
107
it ( 'return the label of the first control' , ( ) => {
124
108
expect ( or ( controlFirst , controlNonGamepad ) . label ) . to . equal ( 'first' )
125
109
} )
126
110
127
- it ( 'return the icons of the first control' , ( ) => {
128
- expect ( or ( controlFirst , controlNonGamepad ) . label ) . to . equal ( 'first' )
129
- } )
130
-
131
111
} )
132
112
133
113
} )
0 commit comments