Skip to content

Commit 3dea29d

Browse files
authored
Merge pull request #234 from climba03003/test-coverage
test: coverage on missing #229
2 parents e095b36 + f4cb169 commit 3dea29d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/job-utils.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,15 @@ test('getJobNames: ignores jobs with no valid name', (t) => {
9292

9393
t.deepEqual(names, ['hey', 'hello']);
9494
});
95+
96+
test('getJobPath: missing dot in accepted extensions', (t) => {
97+
const path = jobUtils.getJobPath('foo', ['js', 'ts'], 'js');
98+
99+
t.is(path, 'foo.js');
100+
});
101+
102+
test('getJobPath: having dot in default extension', (t) => {
103+
const path = jobUtils.getJobPath('foo', ['js', 'ts'], '.js');
104+
105+
t.is(path, 'foo.js');
106+
});

0 commit comments

Comments
 (0)