parent
2b15108f7e
commit
8a4c577917
|
@ -9,7 +9,7 @@ describe('hasValues filter', () => {
|
||||||
|
|
||||||
it('should return true if the specified property is truthy on any item in the list', function() {
|
it('should return true if the specified property is truthy on any item in the list', function() {
|
||||||
expect(filter.process([], 'a')).toEqual(false);
|
expect(filter.process([], 'a')).toEqual(false);
|
||||||
expect(filter.process(0), 'a').toEqual(false);
|
expect(filter.process(0, 'a')).toEqual(false);
|
||||||
expect(filter.process({}, 'a')).toEqual(false);
|
expect(filter.process({}, 'a')).toEqual(false);
|
||||||
expect(filter.process([{a: 1}], 'a')).toEqual(true);
|
expect(filter.process([{a: 1}], 'a')).toEqual(true);
|
||||||
expect(filter.process([{b: 2}], 'a')).toEqual(false);
|
expect(filter.process([{b: 2}], 'a')).toEqual(false);
|
||||||
|
|
Loading…
Reference in New Issue