From 0c58e712735bc4ea64baf5f94af04c2e02466cd8 Mon Sep 17 00:00:00 2001 From: alxndrsn Date: Thu, 21 Mar 2024 09:11:07 +0000 Subject: [PATCH] Add test for X-Powered-By header --- test/integration/other/http-headers.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/integration/other/http-headers.js diff --git a/test/integration/other/http-headers.js b/test/integration/other/http-headers.js new file mode 100644 index 000000000..9b80754cf --- /dev/null +++ b/test/integration/other/http-headers.js @@ -0,0 +1,9 @@ +const should = require('should'); +const { testService } = require('../setup'); + +describe('http-headers', () => { + it('should not include x-powered-by header', testService(async (service) => { + const { headers } = await service.get('/v1/users/current'); + should(headers['x-powered-by']).be.undefined(); + })); +});