Skip to content

Commit f4cb169

Browse files
committed
test: coverage on missing #229
1 parent e095b36 commit f4cb169

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)