diff options
author | Marvin Borner | 2019-01-24 17:29:02 +0100 |
---|---|---|
committer | Marvin Borner | 2019-01-24 17:29:02 +0100 |
commit | 2abf58c832112e6ef950bbd6a7616eac22ac4b10 (patch) | |
tree | 55f3d4f6c542e2ecb8da0ee832dc7ba2a2569862 /test/routes.test.js | |
parent | 5abc62e8657e70c405afa175e52c73316d8a53a2 (diff) |
Reformatted code
Diffstat (limited to 'test/routes.test.js')
-rw-r--r-- | test/routes.test.js | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/test/routes.test.js b/test/routes.test.js index 3dc100e..025c17c 100644 --- a/test/routes.test.js +++ b/test/routes.test.js @@ -2,27 +2,27 @@ import request from 'supertest'; import app from '../src/app.js'; describe('GET /', () => { - it('should render properly', async () => { - await request(app).get('/').expect(200); - }); + 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 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); - }); + 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); - }); + it('should return 404 for non-existent URLs', async () => { + await request(app).get('/404').expect(404); + await request(app).get('/notfound').expect(404); + }); }); |