Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Aug 27, 2024
1 parent 533990e commit 1c2cad4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/middleware.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1240,10 +1240,11 @@ describe.each([
);
});

it('should return "200" code for the "GET" request and "Content-Length" to the file with unicode', async () => {
it.only('should return "200" code for the "GET" request and "Content-Length" to the file with unicode', async () => {
const response = await req.get("/byte-length.html");

expect(response.statusCode).toEqual(200);
expect(response.text).toBe("\u00bd + \u00bc = \u00be");
expect(response.headers["content-length"]).toEqual("12");
expect(response.headers["content-type"]).toEqual(
"text/html; charset=utf-8",
Expand Down

0 comments on commit 1c2cad4

Please sign in to comment.