diff options
Diffstat (limited to 'test/routes.test.js')
-rw-r--r-- | test/routes.test.js | 28 |
1 files changed, 0 insertions, 28 deletions
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); - }); -}); |