diff options
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/__tests__/path-test.js')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/__tests__/path-test.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/helpers/__tests__/path-test.js b/server/sonar-web/src/main/js/helpers/__tests__/path-test.js index 6520af31676..3941b76b9b7 100644 --- a/server/sonar-web/src/main/js/helpers/__tests__/path-test.js +++ b/server/sonar-web/src/main/js/helpers/__tests__/path-test.js @@ -33,13 +33,15 @@ describe('#collapsedDirFromPath()', () => { }); it('should cut long path', () => { - expect(collapsedDirFromPath('src/main/js/components/navigator/app/models/state.js')) - .toBe('src/.../js/components/navigator/app/models/'); + expect(collapsedDirFromPath('src/main/js/components/navigator/app/models/state.js')).toBe( + 'src/.../js/components/navigator/app/models/' + ); }); it('should cut very long path', () => { - expect(collapsedDirFromPath('src/main/another/js/components/navigator/app/models/state.js')) - .toBe('src/.../js/components/navigator/app/models/'); + expect( + collapsedDirFromPath('src/main/another/js/components/navigator/app/models/state.js') + ).toBe('src/.../js/components/navigator/app/models/'); }); }); |