diff options
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/join.pipe.spec.ts')
-rw-r--r-- | src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/join.pipe.spec.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/join.pipe.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/join.pipe.spec.ts new file mode 100644 index 000000000..01bccbc2d --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/join.pipe.spec.ts @@ -0,0 +1,13 @@ +import { JoinPipe } from './join.pipe'; + +describe('ListPipe', () => { + const pipe = new JoinPipe(); + + it('create an instance', () => { + expect(pipe).toBeTruthy(); + }); + + it('transforms "[1,2,3]"', () => { + expect(pipe.transform([1, 2, 3])).toBe('1, 2, 3'); + }); +}); |