]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/path.pipe.spec.ts
update ceph source to reef 18.2.1
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / pipes / path.pipe.spec.ts
1 import { PathPipe } from './path.pipe';
2
3 describe('PathPipe', () => {
4 it('create an instance', () => {
5 const pipe = new PathPipe();
6 expect(pipe).toBeTruthy();
7 });
8
9 it('should transform the path', () => {
10 const pipe = new PathPipe();
11 expect(pipe.transform('/a/b/c/d')).toBe('/a/.../d');
12 });
13
14 it('should transform the path with no slash at beginning', () => {
15 const pipe = new PathPipe();
16 expect(pipe.transform('a/b/c/d')).toBe('a/.../d');
17 });
18 });