Skip to content

Commit b1b7bb8

Browse files
committed
test(picker): fixes return data
1 parent b8551de commit b1b7bb8

File tree

1 file changed

+9
-9
lines changed
  • src/components/picker/test/basic

1 file changed

+9
-9
lines changed

src/components/picker/test/basic/index.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class E2EPage {
2121
},
2222
{
2323
text: 'Done',
24-
handler: (data) => {
25-
this.smoothie = `${data.flavor1} ${data.flavor2}`;
24+
handler: (data: any) => {
25+
this.smoothie = `${data.flavor1.value} ${data.flavor2.value}`;
2626
}
2727
}
2828
],
@@ -86,8 +86,8 @@ class E2EPage {
8686
},
8787
{
8888
text: 'Woot!',
89-
handler: (data) => {
90-
this.smoothie = `${data.flavor1}`;
89+
handler: (data: any) => {
90+
this.smoothie = `${data.flavor1.value}`;
9191
}
9292
}
9393
],
@@ -130,8 +130,8 @@ class E2EPage {
130130
},
131131
{
132132
text: 'Si',
133-
handler: (data) => {
134-
this.smoothie = `${data.flavor1}`;
133+
handler: (data: any) => {
134+
this.smoothie = `${data.flavor1.value}`;
135135
}
136136
}
137137
],
@@ -175,8 +175,8 @@ class E2EPage {
175175

176176
picker.addButton({
177177
text: 'Set Timer',
178-
handler: (data) => {
179-
this.timer = `${data.hour}:${data.min}`;
178+
handler: (data: any) => {
179+
this.timer = `${data.hour.value}:${data.min.value}`;
180180
}
181181
});
182182

@@ -188,7 +188,7 @@ class E2EPage {
188188
options: Array.apply(null, {length: 23}).map(Number.call, Number)
189189
});
190190

191-
var minuteOptions = [];
191+
let minuteOptions = [];
192192

193193
for (var i = 0; i < 60; i++) {
194194
minuteOptions.push({

0 commit comments

Comments
 (0)