Skip to content

Commit

Permalink
add more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng92 committed Nov 22, 2024
1 parent 0efeb6d commit ced147d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/unit/src/cucumber-runner.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,16 @@ describe('normalizeFormat', () => {
);
});

it('should normalize format with absolute path', () => {
it('should normalize formats with absolute path', () => {
expect(
normalizeFormat(`"html":"file:///tmp/formatter/report.html"`, assetDir),
).toBe(`"html":"file:///tmp/formatter/report.html"`);
expect(
normalizeFormat(`"html:file:///tmp/formatter/report.html"`, assetDir),
).toBe(`"html":"file:///tmp/formatter/report.html"`);
expect(
normalizeFormat(`html:file:///tmp/formatter/report.html`, assetDir),
).toBe(`"html":"file:///tmp/formatter/report.html"`);
});

it('should return simple strings as-is', () => {
Expand Down

0 comments on commit ced147d

Please sign in to comment.