From 31d6e5e9a619d5680001b84c5131a7b5b151ca29 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 26 Jan 2019 20:36:31 +0100 Subject: Cleaned up code for deployment --- test/routes.test.js | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 test/routes.test.js (limited to 'test') diff --git a/test/routes.test.js b/test/routes.test.js deleted file mode 100644 index 025c17c..0000000 --- a/test/routes.test.js +++ /dev/null @@ -1,28 +0,0 @@ -import request from 'supertest'; -import app from '../src/app.js'; - -describe('GET /', () => { - it('should render properly', async () => { - await request(app).get('/').expect(200); - }); -}); - -describe('GET /list', () => { - it('should render properly with valid parameters', async () => { - await request(app) - .get('/list') - .query({title: 'List title'}) - .expect(200); - }); - - it('should error without a valid parameter', async () => { - await request(app).get('/list').expect(500); - }); -}); - -describe('GET /404', () => { - it('should return 404 for non-existent URLs', async () => { - await request(app).get('/404').expect(404); - await request(app).get('/notfound').expect(404); - }); -}); -- cgit v1.2.3