mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[AAE-10499] feat: create angular based custom http client for alfresco js api (#7800)
This commit is contained in:
29
lib/core/api/alfresco-api/alfresco-api.param-encoder.spec.ts
Normal file
29
lib/core/api/alfresco-api/alfresco-api.param-encoder.spec.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2019 Alfresco Software, Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { AlfrescoApiParamEncoder } from './alfresco-api.param-encoder';
|
||||
|
||||
describe('AlfrescoApiParamEncoder', () => {
|
||||
it('should propely encode special "+" character', () => {
|
||||
const encoder = new AlfrescoApiParamEncoder();
|
||||
const value = '2022-08-17T00:00:00.000+02:00';
|
||||
const encodeValue = '2022-08-17T00%3A00%3A00.000%2B02%3A00';
|
||||
|
||||
expect(encoder.encodeValue(value)).toBe(encodeValue);
|
||||
expect(encoder.decodeValue(encodeValue)).toBe(value);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user