Skip to content

Commit bcb0753

Browse files
committed
Add flickr images field to rocket, dragon, and roadster tests
1 parent 65fed7c commit bcb0753

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

test/routes/v3/dragons.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ test('It should return all Dragon data', async () => {
4343
expect(item).toHaveProperty('trunk.trunk_volume', customMatchers.volume());
4444
expect(item).toHaveProperty('height_w_trunk', customMatchers.length());
4545
expect(item).toHaveProperty('diameter', customMatchers.length());
46+
expect(item).toHaveProperty('flickr_images');
4647
});
4748
});
4849

test/routes/v3/roadster.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ test('It should return roadster info', async () => {
3030
expect(response.body).toHaveProperty('earth_distance_mi', expect.any(Number));
3131
expect(response.body).toHaveProperty('mars_distance_km', expect.any(Number));
3232
expect(response.body).toHaveProperty('mars_distance_mi', expect.any(Number));
33+
expect(response.body).toHaveProperty('flickr_images');
3334
});

test/routes/v3/rockets.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ test('It should return all rocket info', async () => {
4444
});
4545
expect(item).toHaveProperty('first_stage', customMatchers.vehicleStage());
4646
expect(item).toHaveProperty('second_stage', customMatchers.vehicleStage());
47+
expect(item).toHaveProperty('flickr_images');
4748
expect(item).toHaveProperty('wikipedia', expect.any(String));
4849
expect(item).toHaveProperty('description', expect.any(String));
4950
});
@@ -59,6 +60,7 @@ test('It should return Falcon 1 info', async () => {
5960
expect(response.body).toHaveProperty('first_flight', '2006-03-24');
6061
expect(response.body).toHaveProperty('country');
6162
expect(response.body).toHaveProperty('company', 'SpaceX');
63+
expect(response.body).toHaveProperty('flickr_images');
6264
expect(response.body).toHaveProperty('wikipedia');
6365
expect(response.body).toHaveProperty('description');
6466
});
@@ -73,6 +75,7 @@ test('It should return Falcon Heavy info', async () => {
7375
expect(response.body).toHaveProperty('first_flight');
7476
expect(response.body).toHaveProperty('country');
7577
expect(response.body).toHaveProperty('company', 'SpaceX');
78+
expect(response.body).toHaveProperty('flickr_images');
7679
expect(response.body).toHaveProperty('wikipedia');
7780
expect(response.body).toHaveProperty('description');
7881
});

0 commit comments

Comments
 (0)