Skip to content

Commit

Permalink
Merge pull request #234 from climba03003/test-coverage
Browse files Browse the repository at this point in the history
test: coverage on missing #229
  • Loading branch information
titanism committed Nov 21, 2023
2 parents e095b36 + f4cb169 commit 3dea29d
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 3dea29d

Please sign in to comment.