ng2-pipes
Version:
Useful angular2 pipes
16 lines (12 loc) • 388 B
text/typescript
import {IsLessThanPipe} from "./is-less-than";
describe('IsLessThanPipe', () => {
let pipe: IsLessThanPipe;
beforeEach(() => {
pipe = new IsLessThanPipe();
});
it('should check if of given value is less than other', () => {
expect(pipe.transform(1, 1)).toBeFalsy();
expect(pipe.transform(1, 2)).toBeTruthy();
expect(pipe.transform(2, 1)).toBeFalsy();
});
});