From f88e3d974880df591e4d4c81916a0403be94fbb3 Mon Sep 17 00:00:00 2001 From: Ogawa Yuya Date: Sun, 29 Oct 2023 22:38:40 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AD=E3=82=B0=E3=82=A2=E3=82=A6=E3=83=88?= =?UTF-8?q?=E6=99=82=E3=81=AE=E3=83=86=E3=82=B9=E3=83=88=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/test.js | 9 +++++++++ 1 file changed, 9 insertions(+) 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