Skip to content

Commit

Permalink
fix: tests in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ASaiAnudeep committed Sep 1, 2024
1 parent 47b123b commit e433526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/parser.cucumber.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -667,9 +667,9 @@ describe('Parser - Cucumber Json', () => {
assert.equal(result.suites[0].cases[0].attachments[0].name, 'screenshot.png');
assert.equal(result.suites[0].cases[0].attachments[0].path, 'tests/data/attachments/screenshot.png');
assert.match(result.suites[0].cases[0].attachments[1].name, /I_should_see_result_13-\d+.png/);
assert.match(result.suites[0].cases[0].attachments[1].path, /\.testbeats\/attachments\/I_should_see_result_13-\d+.png/);
assert.match(result.suites[0].cases[0].attachments[1].path, /.*testbeats.*attachments.+I_should_see_result_13-\d+.png/);
assert.match(result.suites[0].cases[0].attachments[2].name, /I_should_see_result_13-\d+.json/);
assert.match(result.suites[0].cases[0].attachments[2].path, /\.testbeats\/attachments\/I_should_see_result_13-\d+.json/);
assert.match(result.suites[0].cases[0].attachments[2].path, /.*testbeats.*attachments.*I_should_see_result_13-\d+.json/);
});

it('test with invalid attachments', () => {
Expand Down

0 comments on commit e433526

Please sign in to comment.