diff options
Diffstat (limited to '')
-rw-r--r-- | src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/iscsi-backstore.pipe.spec.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/iscsi-backstore.pipe.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/iscsi-backstore.pipe.spec.ts new file mode 100644 index 000000000..c82e37554 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/iscsi-backstore.pipe.spec.ts @@ -0,0 +1,17 @@ +import { IscsiBackstorePipe } from './iscsi-backstore.pipe'; + +describe('IscsiBackstorePipe', () => { + const pipe = new IscsiBackstorePipe(); + + it('create an instance', () => { + expect(pipe).toBeTruthy(); + }); + + it('transforms "user:rbd"', () => { + expect(pipe.transform('user:rbd')).toBe('user:rbd (tcmu-runner)'); + }); + + it('transforms "other"', () => { + expect(pipe.transform('other')).toBe('other'); + }); +}); |