File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ func TestListRenderer_renderLines(t *testing.T) {
115
115
}
116
116
for _ , s := range scenarios {
117
117
t .Run (s .name , func (t * testing.T ) {
118
- viewModel := NewListViewModel [ mystring ] (func () []mystring { return s .modelStrings })
118
+ viewModel := NewListViewModel (func () []mystring { return s .modelStrings })
119
119
var getNonModelItems func () []* NonModelItem
120
120
if s .nonModelIndices != nil {
121
121
getNonModelItems = func () []* NonModelItem {
@@ -236,7 +236,7 @@ func TestListRenderer_ModelIndexToViewIndex_and_back(t *testing.T) {
236
236
assert .Equal (t , len (s .viewIndices ), len (s .expectedModelIndices ))
237
237
238
238
modelInts := lo .Map (lo .Range (s .numModelItems ), func (i int , _ int ) myint { return myint (i ) })
239
- viewModel := NewListViewModel [ myint ] (func () []myint { return modelInts })
239
+ viewModel := NewListViewModel (func () []myint { return modelInts })
240
240
var getNonModelItems func () []* NonModelItem
241
241
if s .nonModelIndices != nil {
242
242
getNonModelItems = func () []* NonModelItem {
You can’t perform that action at this time.
0 commit comments