Skip to content

Commit 730c03a

Browse files
committed
fix(value-accessors): ListPicker, etc test now using real items.
Behavior change in tns-core-modules 3.0.0+
1 parent 4b18ceb commit 730c03a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Diff for: tests/app/tests/value-accessor-tests.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,19 @@ class TestDateValueAccessor extends DateValueAccessor {
3939

4040
class TestSelectedIndexValueAccessor extends SelectedIndexValueAccessor {
4141
constructor() {
42-
super(new TestElementRef(new ListPicker()));
42+
super(new TestElementRef(TestSelectedIndexValueAccessor.picker()));
43+
}
44+
45+
static picker(): ListPicker {
46+
const picker = new ListPicker();
47+
picker.items = [
48+
"1",
49+
"2",
50+
"3",
51+
"4",
52+
"5",
53+
];
54+
return picker;
4355
}
4456
}
4557

0 commit comments

Comments
 (0)