Skip to content

Commit

Permalink
Added failing tests #56
Browse files Browse the repository at this point in the history
  • Loading branch information
VadimDez committed Mar 24, 2018
1 parent 180eacb commit 2f9a4d4
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 31 deletions.
62 changes: 31 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions src/app/shared/ngx-filter-pipe/ngx-filter.pipe.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,4 +287,17 @@ describe('Pipe: FilterPipe', () => {
{ name: 'aad' }
]);
});

// describe('search in string', () => {
// const objects = ['Item 1', 'Item 2', 'Item 22', 'Item 123', 'Item 4'];
// const result = ['Item 2', 'Item 22', 'Item 123'];
//
// it('should return string that contain the number', () => {
// expect(pipe.transform(objects, 2)).toEqual(result);
// });
//
// it('should return string that contain the string number', () => {
// expect(pipe.transform(objects, '2')).toEqual(result);
// });
// });
});

0 comments on commit 2f9a4d4

Please sign in to comment.