Skip to content

Commit

Permalink
chore: fix nit from review
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Aug 29, 2022
1 parent 1ecab98 commit 3565dce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/0.command.dev.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ test('should follow 301 redirect to an external server', async (t) => {
})
})

test('should rewrite POST request if content-type is missing', async (t) => {
test('should rewrite POST request if content-type is missing and not crash dev server', async (t) => {
await withSiteBuilder('site-with-post-no-content-type', async (builder) => {
builder.withNetlifyToml({
config: {
Expand All @@ -237,8 +237,8 @@ test('should rewrite POST request if content-type is missing', async (t) => {
}),
)

// we're testing Netlify Dev didn't crash
t.is(error.message, 'Response code 405 (Method Not Allowed)')
// Method Not Allowed
t.is(error.response.statusCode, 405)
})
})
})
Expand Down

0 comments on commit 3565dce

Please sign in to comment.