summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/round.pipe.spec.ts
blob: 60204526383bba8d89057c862655b7230eb6fd8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
  });
});