Skip to content

Commit 2872e8e

Browse files
committed
Remove duplicated tests from SeparatorPadCalculator since it's already tested via the base class tests
1 parent 1a0cb99 commit 2872e8e

1 file changed

Lines changed: 0 additions & 60 deletions

File tree

test/unitTests/padCalculation/separatorPadCalculator.test.ts

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -9,66 +9,6 @@ import { PadCalculatorSelector } from '../../../src/padCalculation/padCalculator
99

1010
suite("SeparatorPadCalculator tests", () => {
1111

12-
test("getLeftPadding() First column not left padded", () => {
13-
const sut = createCalculator();
14-
const table = tableFor([
15-
[ "aaaaa", "bbbbb", "ccccc" ],
16-
[ "aaaaa", "bbbbb", "ccccc" ]
17-
]);
18-
19-
const pad = sut.getLeftPadding(table, 1, 0);
20-
21-
assert.equal(pad, "");
22-
});
23-
24-
test("getLeftPadding() First column left padded with 1 character if there is a left border", () => {
25-
const sut = createCalculator();
26-
const table = tableFor([
27-
[ "aaaaa", "bbbbb", "ccccc" ],
28-
[ "aaaaa", "bbbbb", "ccccc" ]
29-
]);
30-
table.hasLeftBorder = true;
31-
const pad = sut.getLeftPadding(table, 1, 1);
32-
33-
assert.equal(pad, "-");
34-
});
35-
36-
test("getLeftPadding() Middle column left padded with 1 character", () => {
37-
const sut = createCalculator();
38-
const table = tableFor([
39-
[ "aaaaa", "bbbbb", "ccccc" ],
40-
[ "aaaaa", "bbbbb", "ccccc" ]
41-
]);
42-
43-
const pad = sut.getLeftPadding(table, 1, 1);
44-
45-
assert.equal(pad, "-");
46-
});
47-
48-
test("getLeftPadding() Middle column is empty cell gets left padded with one character", () => {
49-
const sut = createCalculator();
50-
const table = tableFor([
51-
[ "aaa", "bbbb", "ccccc" ],
52-
[ "a", "", "c" ]
53-
]);
54-
55-
const pad = sut.getLeftPadding(table, 1, 1);
56-
57-
assert.equal(pad, "-");
58-
});
59-
60-
test("getLeftPadding() Last column left padded with 1 character", () => {
61-
const sut = createCalculator();
62-
const table = tableFor([
63-
[ "aaaaa", "bbbbb", "ccccc" ],
64-
[ "aaaaa", "bbbbb", "ccccc" ]
65-
]);
66-
67-
const pad = sut.getLeftPadding(table, 1, 2);
68-
69-
assert.equal(pad, "-");
70-
});
71-
7212
test("getRightPadding() First column gets right padded with maxColLength+1 dashes", () => {
7313
const sut = createCalculator();
7414
const table = tableFor([

0 commit comments

Comments
 (0)