Skip to content

Commit

Permalink
app.tset.js のリファクタリング
Browse files Browse the repository at this point in the history
  • Loading branch information
E233-3639 committed Jun 7, 2024
1 parent 2058ab3 commit 8c9c4e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ describe("/schedules", () => {
candidates: "テスト候補1\r\nテスト候補2\r\nテスト候補3",
});

expect(postRes.headers.get("Location")).toMatch(/schedules/);
const createdSchedulePath = postRes.headers.get("Location");
expect(createdSchedulePath).toMatch(/schedules/);
expect(postRes.status).toBe(302);

const createdSchedulePath = postRes.headers.get("Location");
scheduleId = createdSchedulePath.split("/schedules/")[1];

const res = await app.request(createdSchedulePath);
Expand Down

0 comments on commit 8c9c4e1

Please # to comment.