Fix SonarQubeClient test checking for Authentication header

Signed-off-by: Shyam Saraswati <ssaraswati@willowinc.com>
This commit is contained in:
Shyam Saraswati
2021-08-06 07:52:56 +10:00
parent 8db48b968c
commit 1099a77ea3
@@ -322,7 +322,7 @@ describe('SonarQubeClient', () => {
server.use(
rest.get(`${mockBaseUrl}/sonarqube/components/show`, (req, res, ctx) => {
expect(req.url.searchParams.toString()).toBe('component=our%3Aservice');
expect(req.headers.get('Authorization')).toBeUndefined();
expect(req.headers.has('Authorization')).toBeFalsy();
return res(
ctx.json({
component: {