test(picker): fixes return data

This commit is contained in:
Manu Mtz.-Almeida
2016-06-27 20:02:30 +02:00
parent b8551defd5
commit b1b7bb806a

View File

@ -21,8 +21,8 @@ class E2EPage {
}, },
{ {
text: 'Done', text: 'Done',
handler: (data) => { handler: (data: any) => {
this.smoothie = `${data.flavor1} ${data.flavor2}`; this.smoothie = `${data.flavor1.value} ${data.flavor2.value}`;
} }
} }
], ],
@ -86,8 +86,8 @@ class E2EPage {
}, },
{ {
text: 'Woot!', text: 'Woot!',
handler: (data) => { handler: (data: any) => {
this.smoothie = `${data.flavor1}`; this.smoothie = `${data.flavor1.value}`;
} }
} }
], ],
@ -130,8 +130,8 @@ class E2EPage {
}, },
{ {
text: 'Si', text: 'Si',
handler: (data) => { handler: (data: any) => {
this.smoothie = `${data.flavor1}`; this.smoothie = `${data.flavor1.value}`;
} }
} }
], ],
@ -175,8 +175,8 @@ class E2EPage {
picker.addButton({ picker.addButton({
text: 'Set Timer', text: 'Set Timer',
handler: (data) => { handler: (data: any) => {
this.timer = `${data.hour}:${data.min}`; this.timer = `${data.hour.value}:${data.min.value}`;
} }
}); });
@ -188,7 +188,7 @@ class E2EPage {
options: Array.apply(null, {length: 23}).map(Number.call, Number) options: Array.apply(null, {length: 23}).map(Number.call, Number)
}); });
var minuteOptions = []; let minuteOptions = [];
for (var i = 0; i < 60; i++) { for (var i = 0; i < 60; i++) {
minuteOptions.push({ minuteOptions.push({