update test to remove custom block

This commit is contained in:
Iuri Matias 2019-08-19 14:23:54 -04:00
parent 0ca029dbb3
commit f05a04fbc1
1 changed files with 6 additions and 2 deletions

View File

@ -95,8 +95,10 @@ async function run() {
eventSyncer.init(() => { eventSyncer.init(() => {
// TODO: would be nice if trackEvent was smart enough to understand the type of returnValues and do the needed conversions // TODO: would be nice if trackEvent was smart enough to understand the type of returnValues and do the needed conversions
eventSyncer.trackEvent(RatingContract, 'Rating', ((x) => true)).pipe(map(x => parseInt(x.rating)), myscan, mymap).subscribe((v) => { // eventSyncer.trackEvent(RatingContract, 'Rating', ((x) => true)).pipe(map(x => parseInt(x.rating)), myscan, mymap).subscribe((v) => {
// eventSyncer.trackEvent(RatingContract, 'Rating', ((x) => true)).pipe(map(x => x.rating)).subscribe((v) => { // eventSyncer.trackEvent(RatingContract, 'Rating', ((x) => true)).pipe(map(x => x.rating)).subscribe((v) => {
eventSyncer.trackEvent(RatingContract, 'Rating').pipe(map(x => parseInt(x.rating)), myscan, mymap).subscribe((v) => {
console.dir("value is ") console.dir("value is ")
console.dir(v) console.dir(v)
}); });
@ -106,8 +108,10 @@ async function run() {
return acc; return acc;
}, []) }, [])
// eventSyncer.trackEvent(RatingContract, 'Rating', ((x) => true)).pipe(map(x => parseInt(x.rating)), max, distinctUntilChanged()).subscribe((v) => {
// eventSyncer.trackEvent(RatingContract, 'Rating', ((x) => true)).pipe(map(x => parseInt(x.rating)), last()).subscribe((v) => { // eventSyncer.trackEvent(RatingContract, 'Rating', ((x) => true)).pipe(map(x => parseInt(x.rating)), last()).subscribe((v) => {
eventSyncer.trackEvent(RatingContract, 'Rating', ((x) => true)).pipe(map(x => parseInt(x.rating)), max, distinctUntilChanged()).subscribe((v) => {
eventSyncer.trackEvent(RatingContract, 'Rating').pipe(map(x => parseInt(x.rating)), max, distinctUntilChanged()).subscribe((v) => {
console.dir("max known rating is") console.dir("max known rating is")
console.dir(v) console.dir(v)
}); });