UNPKG

ng2-pipes

Version:
16 lines (12 loc) 406 B
import {IsGreaterThanPipe} from "./is-greater-than"; describe('IsGreaterThanPipe', () => { let pipe: IsGreaterThanPipe; beforeEach(() => { pipe = new IsGreaterThanPipe(); }); it('should check if of given value is greater than other', () => { expect(pipe.transform(1, 1)).toBeFalsy(); expect(pipe.transform(1, 2)).toBeFalsy(); expect(pipe.transform(2, 1)).toBeTruthy(); }); });