diff --git a/test/test.js b/test/test.js index 5d782cc..012b3c2 100644 --- a/test/test.js +++ b/test/test.js @@ -28,4 +28,13 @@ describe('/login', () => { .expect(/testuser/) .expect(200); }); +}); + +describe('/logout', () => { + test('/にリダイレクトされる', async () => { + await request(app) + .get('/logout') + .expect('Location', '/') + .expect(302); + }); }); \ No newline at end of file