Skip to content

Commit

Permalink
Coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
danrevah committed Mar 10, 2017
1 parent 1aa1f45 commit 0d80d85
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/pipes/array/diff.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ describe('DiffPipe', () => {
pipe = new DiffPipe();
});

it('should return the input if not an array', () => {
expect(pipe.transform(true)).toEqual(true);
expect(pipe.transform(42)).toEqual(42);
});

it('should keep the array the same way if it doesn\'t have any without arguments', () => {
expect(pipe.transform([1, 2, 3])).toEqual([1, 2, 3]);
expect(pipe.transform([])).toEqual([]);
Expand Down

0 comments on commit 0d80d85

Please sign in to comment.