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