Skip to content

Commit

Permalink
test: fixed named function test case
Browse files Browse the repository at this point in the history
  • Loading branch information
naz committed Jan 5, 2021
1 parent b1b24aa commit 7685bce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/job-utils..js
Expand Up @@ -23,9 +23,8 @@ test('getName: extracts job name from an object', (t) => {
});

test('getName: extracts job name from a named function', (t) => {
const namedFunction = () => {};
namedFunction.name = 'functionName';
t.is(jobUtils.getName(namedFunction), 'functionName');
function namedFunction() {}
t.is(jobUtils.getName(namedFunction), 'namedFunction');
});

test('getHumanToMs: converts values into milliseconds', (t) => {
Expand Down

0 comments on commit 7685bce

Please sign in to comment.