diff options
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/round.pipe.spec.ts')
-rw-r--r-- | src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/round.pipe.spec.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/round.pipe.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/round.pipe.spec.ts new file mode 100644 index 000000000..602045263 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/round.pipe.spec.ts @@ -0,0 +1,13 @@ +import { RoundPipe } from './round.pipe'; + +describe('RoundPipe', () => { + const pipe = new RoundPipe(); + + it('create an instance', () => { + expect(pipe).toBeTruthy(); + }); + + it('transforms "1500"', () => { + expect(pipe.transform(1.52, 1)).toEqual(1.5); + }); +}); |