Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 393f503

Browse files
committed
style(filterFilter): fix indentation and remove newline for consistency
1 parent 0a9c468 commit 393f503

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

test/ng/filter/filterSpec.js

+18-18
Original file line numberDiff line numberDiff line change
@@ -438,31 +438,31 @@ describe('Filter: filter', function() {
438438

439439

440440
it('should not throw an error if property is null when comparing object', function() {
441-
var items = [
442-
{ office:1, people: {name:'john'}},
443-
{ office:2, people: {name:'jane'}},
444-
{ office:3, people: null}
445-
];
446-
var f = { };
447-
expect(filter(items, f).length).toBe(3);
448-
449-
f = { people:null };
450-
expect(filter(items, f).length).toBe(1);
441+
var items = [
442+
{ office:1, people: {name:'john'}},
443+
{ office:2, people: {name:'jane'}},
444+
{ office:3, people: null}
445+
];
446+
var f = { };
447+
expect(filter(items, f).length).toBe(3);
451448

452-
f = { people: {}};
453-
expect(filter(items, f).length).toBe(2);
449+
f = { people:null };
450+
expect(filter(items, f).length).toBe(1);
454451

455-
f = { people:{ name: '' }};
456-
expect(filter(items, f).length).toBe(2);
452+
f = { people: {}};
453+
expect(filter(items, f).length).toBe(2);
457454

458-
f = { people:{ name:'john' }};
459-
expect(filter(items, f).length).toBe(1);
455+
f = { people:{ name: '' }};
456+
expect(filter(items, f).length).toBe(2);
460457

461-
f = { people:{ name:'j' }};
462-
expect(filter(items, f).length).toBe(2);
458+
f = { people:{ name:'john' }};
459+
expect(filter(items, f).length).toBe(1);
463460

461+
f = { people:{ name:'j' }};
462+
expect(filter(items, f).length).toBe(2);
464463
});
465464

465+
466466
describe('should support comparator', function() {
467467

468468
it('not consider objects without a custom `toString` in non-strict comparison', function() {

0 commit comments

Comments
 (0)