From 0d80d85b7a6c1efdd53f90bf620427507ae47da6 Mon Sep 17 00:00:00 2001 From: danrevah Date: Fri, 10 Mar 2017 11:14:27 +0200 Subject: [PATCH] Coverage --- src/app/pipes/array/diff.spec.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/pipes/array/diff.spec.ts b/src/app/pipes/array/diff.spec.ts index db48beae..818c7761 100644 --- a/src/app/pipes/array/diff.spec.ts +++ b/src/app/pipes/array/diff.spec.ts @@ -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([]);