Skip to content

Commit ef1fc75

Browse files
committed
test(slides): fix slides test to remove errors
1 parent 8bde8d7 commit ef1fc75

File tree

1 file changed

+2
-3
lines changed
  • ionic/components/slides/test/basic

1 file changed

+2
-3
lines changed

ionic/components/slides/test/basic/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,13 @@ class MyApp {
2222

2323
this.http.get(baseUrl + '?method=flickr.groups.pools.getPhotos&group_id=1463451@N25&safe_search=1&api_key='
2424
+ FLICKR_API_KEY + '&nojsoncallback=1&format=json&tags=' + tags)
25-
.map(res => res.json())
2625
.subscribe(data => {
27-
this.images = data.photos.photo.slice(0, 20);
26+
this.images = data.json().photos.photo.slice(0, 20);
2827
setTimeout(() => {
2928
this.slider.update();
3029
});
3130
}, (err) => {
32-
alert('Unable to load images');
31+
console.info('Unable to load images');
3332
console.error(err);
3433
})
3534
}

0 commit comments

Comments
 (0)