From 1c2cad4e16dbd9932b67cf233fb6ee16cd30cb31 Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Tue, 27 Aug 2024 17:18:12 +0300 Subject: [PATCH] test: fix --- test/middleware.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/middleware.test.js b/test/middleware.test.js index a4b76eff4..ef72c944e 100644 --- a/test/middleware.test.js +++ b/test/middleware.test.js @@ -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",