Skip to content

Commit 96d25af

Browse files
committed
added core flight field to tests
1 parent 9c4ecf0 commit 96d25af

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/routes/v2-launches.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ test('It should return all past launches', () => {
2727
expect(item.rocket.first_stage.cores.length).toBeGreaterThan(0);
2828
item.rocket.first_stage.cores.forEach((core) => {
2929
expect(core).toHaveProperty('core_serial');
30+
expect(core).toHaveProperty('flight', expect.any(Number));
3031
expect(core).toHaveProperty('reused');
3132
expect(core).toHaveProperty('land_success');
3233
expect(core).toHaveProperty('landing_type');

test/routes/v2-upcoming.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ test('It should return all upcoming launches', () => {
2727
expect(item.rocket.first_stage.cores.length).toBeGreaterThan(0);
2828
item.rocket.first_stage.cores.forEach((core) => {
2929
expect(core).toHaveProperty('core_serial');
30+
expect(core).toHaveProperty('flight');
3031
expect(core).toHaveProperty('reused');
3132
expect(core).toHaveProperty('land_success');
3233
expect(core).toHaveProperty('landing_type');

0 commit comments

Comments
 (0)