diff options
author | Philippe Perrin <philippe.perrin@sonarsource.com> | 2022-11-02 11:08:39 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-11-02 20:03:01 +0000 |
commit | 2ab6fc273ecbf405f7c126fab11ddc0b9bf516da (patch) | |
tree | a6e005b4f57fb488d3e551b7df52399e69b0674c /server/sonar-web/src/main/js/helpers/__tests__/extensions-test.ts | |
parent | 60e4b88e4567c1af3051b6cdc4c8858f8b0fca21 (diff) | |
download | sonarqube-2ab6fc273ecbf405f7c126fab11ddc0b9bf516da.tar.gz sonarqube-2ab6fc273ecbf405f7c126fab11ddc0b9bf516da.zip |
SONAR-13368 Bump to prettier@2.7.1
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/__tests__/extensions-test.ts')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/__tests__/extensions-test.ts | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/helpers/__tests__/extensions-test.ts b/server/sonar-web/src/main/js/helpers/__tests__/extensions-test.ts index 4198e8e1241..7d1c05fa62d 100644 --- a/server/sonar-web/src/main/js/helpers/__tests__/extensions-test.ts +++ b/server/sonar-web/src/main/js/helpers/__tests__/extensions-test.ts @@ -25,8 +25,8 @@ jest.mock('../../app/components/extensions/exposeLibraries', () => jest.fn()); beforeEach(() => { jest.clearAllMocks(); - document.body.childNodes.forEach(node => document.body.removeChild(node)); - document.head.childNodes.forEach(node => document.head.removeChild(node)); + document.body.childNodes.forEach((node) => document.body.removeChild(node)); + document.head.childNodes.forEach((node) => document.head.removeChild(node)); }); describe('installScript', () => { @@ -52,17 +52,14 @@ describe('getExtensionStart', () => { beforeEach(() => { Object.defineProperty(document, 'createElement', { writable: true, - value: jest - .fn() - .mockReturnValueOnce(scriptTag) - .mockReturnValueOnce(linkTag) + value: jest.fn().mockReturnValueOnce(scriptTag).mockReturnValueOnce(linkTag), }); }); afterEach(() => { Object.defineProperty(document, 'createElement', { writable: true, - value: originalCreateElement + value: originalCreateElement, }); }); |