Skip to content
Myr

test(validator): fix the error message for node v18.18 (#1596)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* test(validator): fix the error message for node v18.18 * ci: fix node version * fixed version * test: fix the test pattern

authored by Yusuke Wada · committed by GitHub · parent 850ae92 · Browse files · 2 files+6 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+6 added−6 removed

  • tests:+5 added−5 removed
  • other:+1 added−1 removed

2 files+6 added−6 removed

modified:.github/workflows/ci.yml+1 added-1 removed
modified:src/validator/validator.test.ts+5 added-5 removed
134 unmodified lines
135 method: 'POST',136 body: 'hi',137 })138 expect(res.status).toBe(400)139 expect(await res.json()).toEqual({140 success: false,141 message:142 'Malformed FormData request. Response.formData: Could not parse content as FormData.',143 })139 const data = await res.json()140 expect(data['success']).toBe(false)141 expect(data['message']).toMatch(142 /Malformed FormData request. \_*Response.formData: Could not parse content as FormData./143 )144 })145146 it('Should return 400 response, for malformed content type header', async () => {147 const res = await app.request('http://localhost/post', {
673 unmodified lines