Skip to content

Commit

Permalink
test: coverage on missing #229
Browse files Browse the repository at this point in the history
  • Loading branch information
climba03003 committed Nov 21, 2023
1 parent e095b36 commit f4cb169
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/job-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,15 @@ test('getJobNames: ignores jobs with no valid name', (t) => {

t.deepEqual(names, ['hey', 'hello']);
});

test('getJobPath: missing dot in accepted extensions', (t) => {
const path = jobUtils.getJobPath('foo', ['js', 'ts'], 'js');

t.is(path, 'foo.js');
});

test('getJobPath: having dot in default extension', (t) => {
const path = jobUtils.getJobPath('foo', ['js', 'ts'], '.js');

t.is(path, 'foo.js');
});

0 comments on commit f4cb169

Please sign in to comment.