Skip to content

Commit eaff405

Browse files
chore(lint): lint commonSpec
1 parent c19d007 commit eaff405

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/commonSpec.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('common', function() {
1919

2020
it('should filter objects', function() {
2121
const input = { foo: 1, bar: 2, baz: 3, qux: 4 };
22-
const filtered = filter(input, function(val, key) { return val > 2; });
22+
const filtered = filter(input, function(value, _key) { return value > 2; });
2323
expect(Object.keys(filtered).length).toBe(2);
2424
expect(filtered).toEqual({ baz: 3, qux: 4 });
2525
});
@@ -99,18 +99,18 @@ describe('common', function() {
9999
});
100100

101101
it('should accept functions with parameters', function() {
102-
function fn(foo, bar) {}
102+
function fn(_foo, _bar) {}
103103
expect(isInjectable(fn)).toBeTruthy();
104104
});
105105

106106
it('should accept ng1 annotated functions', function() {
107107
fn['$inject'] = ['foo', 'bar'];
108-
function fn (foo, bar) {}
108+
function fn (_foo, _bar) {}
109109
expect(isInjectable(fn)).toBeTruthy();
110110
});
111111

112112
it('should accept ng1 array notation', function() {
113-
const fn = ['foo', 'bar', function(foo, bar) {}];
113+
const fn = ['foo', 'bar', function(_foo, _bar) {}];
114114
expect(isInjectable(fn)).toBeTruthy();
115115
});
116116
});

0 commit comments

Comments
 (0)