Skip to content
Permalink
Browse files
fix(console-reporter): corrected the padding on longer category names
Closes #375
  • Loading branch information
jan-molak committed Feb 3, 2020
1 parent d7a2a28 commit d193b7d7d611cfc81b10a491554e1fa12e8d6418
Showing with 16 additions and 1 deletion.
  1. +16 −1 packages/console-reporter/spec/stage/crew/console-reporter/SummaryFormatter.spec.ts
@@ -86,10 +86,25 @@ describe('SummaryFormatter', () => {
expect(formatter.format(summary.aggregated())).to.equal(trimmed `
| Execution Summary
|
| Know-Your-Customer and Ant...: 1 successful, 1 total (5ms)
| Know-Your-Customer and Ant...: 1 successful, 1 total (5ms)
|
| Total time: 5ms
| Scenarios: 1
`);
});

it('keeps the padding consistent between longer and shorter category names', () => {
summary.record(addingProductToBasket, new ExecutionSuccessful(), Duration.ofMilliseconds(10));
summary.record(longCategoryName, new ExecutionSuccessful(), Duration.ofMilliseconds(5));

expect(formatter.format(summary.aggregated())).to.equal(trimmed `
| Execution Summary
|
| Basket: 1 successful, 1 total (10ms)
| Know-Your-Customer and Ant...: 1 successful, 1 total (5ms)
|
| Total time: 15ms
| Scenarios: 2
`);
});
});

0 comments on commit d193b7d

Please sign in to comment.