ng2-pipes
Version:
Useful angular2 pipes
17 lines (13 loc) • 451 B
text/typescript
import {IsNotEqualToPipe} from "./is-not-equal-to";
describe('IsNotEqualToPipe', () => {
let pipe: IsNotEqualToPipe;
beforeEach(() => {
pipe = new IsNotEqualToPipe();
});
it('should check if of given value is not equal to other', () => {
expect(pipe.transform(1, 1)).toBeFalsy();
expect(pipe.transform(1, '1')).toBeFalsy();
expect(pipe.transform(1, 2)).toBeTruthy();
expect(pipe.transform(2, 1)).toBeTruthy();
});
});