Skip to content

Commit 6fcaa71

Browse files
committed
Add simple tests for past / upcoming launch routes
1 parent c91711a commit 6fcaa71

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test/routes/v2-launches.test.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,21 @@ test('It should return the next launch', async () => {
115115
const response = await request(app.callback()).get('/v2/launches/next');
116116
expect(response.statusCode).toBe(200);
117117
});
118+
119+
//------------------------------------------------------------
120+
// Past Launches
121+
//------------------------------------------------------------
122+
123+
test('It should return the next launch', async () => {
124+
const response = await request(app.callback()).get('/v2/launches');
125+
expect(response.statusCode).toBe(200);
126+
});
127+
128+
//------------------------------------------------------------
129+
// Upcoming Launches
130+
//------------------------------------------------------------
131+
132+
test('It should return the next launch', async () => {
133+
const response = await request(app.callback()).get('/v2/launches/upcoming');
134+
expect(response.statusCode).toBe(200);
135+
});

0 commit comments

Comments
 (0)