X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/bde7ca868a0c201544476da6c049a98c1188dde9..5b2cd67083705b616e5d468e8ad2c10d84db2af7:/src/common/url.test.ts diff --git a/src/common/url.test.ts b/src/common/url.test.ts index b0f8ae25..21bc518c 100644 --- a/src/common/url.test.ts +++ b/src/common/url.test.ts @@ -2,34 +2,9 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { customDecodeURI, customEncodeURI, encodeHash } from './url'; +import { customDecodeURI, customEncodeURI } from './url'; describe('url', () => { - describe('encodeHash', () => { - it('should ignore path without hash', () => { - // given - const path = 'path/without/hash'; - - // when - const result = encodeHash(path); - - // then - expect(result).toEqual(path); - }); - - it('should replace all hashes within the path', () => { - // given - const path = 'path/with/hash # and one more #'; - const expectedResult = 'path/with/hash %23 and one more %23'; - - // when - const result = encodeHash(path); - - // then - expect(result).toEqual(expectedResult); - }); - }); - describe('customDecodeURI', () => { it('should decode encoded URI', () => { // given