From bbcbfde5c8bfa3b95b3af1b9a61c9a8e3c5794e8 Mon Sep 17 00:00:00 2001 From: mxshahan Date: Thu, 5 Sep 2024 14:31:22 +0600 Subject: [PATCH] Updated test in returns a file using the file function with the built-in handler config --- test/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/file.js b/test/file.js index e695acc..7c7002f 100755 --- a/test/file.js +++ b/test/file.js @@ -303,7 +303,7 @@ describe('file', () => { const res = await server.inject('/filefn/index.js'); expect(res.statusCode).to.equal(200); expect(res.payload).to.contain('Set correct confine value'); - expect(res.headers['content-type']).to.equal('application/javascript; charset=utf-8'); + expect(res.headers['content-type']).to.equal('text/javascript; charset=utf-8'); expect(res.headers['content-length']).to.exist(); });