diff options
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/encode-uri.pipe.spec.ts')
-rw-r--r-- | src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/encode-uri.pipe.spec.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/encode-uri.pipe.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/encode-uri.pipe.spec.ts new file mode 100644 index 000000000..a43674093 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/encode-uri.pipe.spec.ts @@ -0,0 +1,13 @@ +import { EncodeUriPipe } from './encode-uri.pipe'; + +describe('EncodeUriPipe', () => { + it('create an instance', () => { + const pipe = new EncodeUriPipe(); + expect(pipe).toBeTruthy(); + }); + + it('should transforms the value', () => { + const pipe = new EncodeUriPipe(); + expect(pipe.transform('rbd/name')).toBe('rbd%2Fname'); + }); +}); |