Test files linted
This commit is contained in:
@ -8,7 +8,9 @@ test('functionName is a Function', () => {
|
||||
test('Works for native functions', () => {
|
||||
expect(functionName(Math.max)).toBe('max');
|
||||
});
|
||||
function fun(x) {return x;}
|
||||
function fun(x) {
|
||||
return x;
|
||||
}
|
||||
test('Works for functions', () => {
|
||||
expect(functionName(fun)).toBe('fun');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user