Skip to content

Commit ffb8742

Browse files
author
Tian Feng
committed
no file uri support in path
1 parent 783703d commit ffb8742

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

src/cucumber-runner.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,6 @@ export function normalizeFormat(format: string, assetDir: string): string {
122122
key = key.replaceAll('"', '');
123123
value = value.replaceAll('"', '');
124124

125-
if (value.startsWith('file://')) {
126-
return `"${key}":"${value}"`;
127-
}
128-
129125
return `"${key}":"${path.join(assetDir, value)}"`;
130126
}
131127

tests/unit/src/cucumber-runner.spec.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,6 @@ describe('normalizeFormat', () => {
5454
);
5555
});
5656

57-
it('should normalize formats with absolute path', () => {
58-
expect(
59-
normalizeFormat(`"html":"file:///tmp/formatter/report.html"`, assetDir),
60-
).toBe(`"html":"file:///tmp/formatter/report.html"`);
61-
expect(
62-
normalizeFormat(`"html:file:///tmp/formatter/report.html"`, assetDir),
63-
).toBe(`"html":"file:///tmp/formatter/report.html"`);
64-
expect(
65-
normalizeFormat(`html:file:///tmp/formatter/report.html`, assetDir),
66-
).toBe(`"html":"file:///tmp/formatter/report.html"`);
67-
});
68-
6957
it('should normalize format with file path type', () => {
7058
expect(
7159
normalizeFormat(

0 commit comments

Comments
 (0)