@@ -50,7 +50,7 @@ describe('List Selection', () => {
5050 return new ListSelection ( {
5151 items,
5252 navigation,
53- values : signal < V [ ] > ( [ ] ) ,
53+ value : signal < V [ ] > ( [ ] ) ,
5454 multiselectable : signal ( true ) ,
5555 selectionMode : signal ( 'explicit' ) ,
5656 ...args ,
@@ -64,7 +64,7 @@ describe('List Selection', () => {
6464 const selection = getSelection ( items , nav ) ;
6565
6666 selection . select ( ) ; // [0]
67- expect ( selection . inputs . values ( ) ) . toEqual ( [ 0 ] ) ;
67+ expect ( selection . inputs . value ( ) ) . toEqual ( [ 0 ] ) ;
6868 } ) ;
6969
7070 it ( 'should select multiple options' , ( ) => {
@@ -76,7 +76,7 @@ describe('List Selection', () => {
7676 nav . next ( ) ;
7777 selection . select ( ) ; // [0, 1]
7878
79- expect ( selection . inputs . values ( ) ) . toEqual ( [ 0 , 1 ] ) ;
79+ expect ( selection . inputs . value ( ) ) . toEqual ( [ 0 , 1 ] ) ;
8080 } ) ;
8181
8282 it ( 'should not select multiple options' , ( ) => {
@@ -90,7 +90,7 @@ describe('List Selection', () => {
9090 nav . next ( ) ;
9191 selection . select ( ) ; // [1]
9292
93- expect ( selection . inputs . values ( ) ) . toEqual ( [ 1 ] ) ;
93+ expect ( selection . inputs . value ( ) ) . toEqual ( [ 1 ] ) ;
9494 } ) ;
9595
9696 it ( 'should not select disabled items' , ( ) => {
@@ -100,7 +100,7 @@ describe('List Selection', () => {
100100 items ( ) [ 0 ] . disabled . set ( true ) ;
101101
102102 selection . select ( ) ; // []
103- expect ( selection . inputs . values ( ) ) . toEqual ( [ ] ) ;
103+ expect ( selection . inputs . value ( ) ) . toEqual ( [ ] ) ;
104104 } ) ;
105105
106106 it ( 'should do nothing to already selected items' , ( ) => {
@@ -111,7 +111,7 @@ describe('List Selection', () => {
111111 selection . select ( ) ; // [0]
112112 selection . select ( ) ; // [0]
113113
114- expect ( selection . inputs . values ( ) ) . toEqual ( [ 0 ] ) ;
114+ expect ( selection . inputs . value ( ) ) . toEqual ( [ 0 ] ) ;
115115 } ) ;
116116 } ) ;
117117
@@ -121,7 +121,7 @@ describe('List Selection', () => {
121121 const nav = getNavigation ( items ) ;
122122 const selection = getSelection ( items , nav ) ;
123123 selection . deselect ( ) ; // []
124- expect ( selection . inputs . values ( ) . length ) . toBe ( 0 ) ;
124+ expect ( selection . inputs . value ( ) . length ) . toBe ( 0 ) ;
125125 } ) ;
126126
127127 it ( 'should not deselect disabled items' , ( ) => {
@@ -133,7 +133,7 @@ describe('List Selection', () => {
133133 items ( ) [ 0 ] . disabled . set ( true ) ;
134134 selection . deselect ( ) ; // [0]
135135
136- expect ( selection . inputs . values ( ) ) . toEqual ( [ 0 ] ) ;
136+ expect ( selection . inputs . value ( ) ) . toEqual ( [ 0 ] ) ;
137137 } ) ;
138138 } ) ;
139139
@@ -144,7 +144,7 @@ describe('List Selection', () => {
144144 const selection = getSelection ( items , nav ) ;
145145
146146 selection . toggle ( ) ; // [0]
147- expect ( selection . inputs . values ( ) ) . toEqual ( [ 0 ] ) ;
147+ expect ( selection . inputs . value ( ) ) . toEqual ( [ 0 ] ) ;
148148 } ) ;
149149
150150 it ( 'should deselect a selected item' , ( ) => {
@@ -153,7 +153,7 @@ describe('List Selection', () => {
153153 const selection = getSelection ( items , nav ) ;
154154 selection . select ( ) ; // [0]
155155 selection . toggle ( ) ; // []
156- expect ( selection . inputs . values ( ) . length ) . toBe ( 0 ) ;
156+ expect ( selection . inputs . value ( ) . length ) . toBe ( 0 ) ;
157157 } ) ;
158158 } ) ;
159159
@@ -163,15 +163,15 @@ describe('List Selection', () => {
163163 const nav = getNavigation ( items ) ;
164164 const selection = getSelection ( items , nav ) ;
165165 selection . selectAll ( ) ;
166- expect ( selection . inputs . values ( ) ) . toEqual ( [ 0 , 1 , 2 , 3 , 4 ] ) ;
166+ expect ( selection . inputs . value ( ) ) . toEqual ( [ 0 , 1 , 2 , 3 , 4 ] ) ;
167167 } ) ;
168168
169169 it ( 'should do nothing if a list is not multiselectable' , ( ) => {
170170 const items = getItems ( [ 0 , 1 , 2 , 3 , 4 ] ) ;
171171 const nav = getNavigation ( items ) ;
172172 const selection = getSelection ( items , nav ) ;
173173 selection . selectAll ( ) ;
174- expect ( selection . inputs . values ( ) ) . toEqual ( [ 0 , 1 , 2 , 3 , 4 ] ) ;
174+ expect ( selection . inputs . value ( ) ) . toEqual ( [ 0 , 1 , 2 , 3 , 4 ] ) ;
175175 } ) ;
176176 } ) ;
177177
@@ -181,7 +181,7 @@ describe('List Selection', () => {
181181 const nav = getNavigation ( items ) ;
182182 const selection = getSelection ( items , nav ) ;
183183 selection . deselectAll ( ) ; // []
184- expect ( selection . inputs . values ( ) . length ) . toBe ( 0 ) ;
184+ expect ( selection . inputs . value ( ) . length ) . toBe ( 0 ) ;
185185 } ) ;
186186 } ) ;
187187
@@ -196,7 +196,7 @@ describe('List Selection', () => {
196196 nav . next ( ) ;
197197 selection . selectFromPrevSelectedItem ( ) ; // [0, 1, 2]
198198
199- expect ( selection . inputs . values ( ) ) . toEqual ( [ 0 , 1 , 2 ] ) ;
199+ expect ( selection . inputs . value ( ) ) . toEqual ( [ 0 , 1 , 2 ] ) ;
200200 } ) ;
201201
202202 it ( 'should select all items from an anchor at a higher index' , ( ) => {
@@ -212,7 +212,7 @@ describe('List Selection', () => {
212212 selection . selectFromPrevSelectedItem ( ) ; // [3, 1, 2]
213213
214214 // TODO(wagnermaciel): Order the values when inserting them.
215- expect ( selection . inputs . values ( ) ) . toEqual ( [ 3 , 1 , 2 ] ) ;
215+ expect ( selection . inputs . value ( ) ) . toEqual ( [ 3 , 1 , 2 ] ) ;
216216 } ) ;
217217 } ) ;
218218} ) ;
0 commit comments