Skip to content

Commit 7bec814

Browse files
committed
handling code readability in spec file
1 parent 7c8bcf0 commit 7bec814

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/helpers/sync/syncSpecsLogs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ let getTableConfig = () => {
3535
border: getBorderConfig(),
3636
columns: {
3737
1: {alignment: 'center', width: 1},
38-
2: {alignment: 'left', width: Math.floor(terminalWidth*0.8)}
38+
2: {alignment: 'left', width: Math.floor(terminalWidth * 0.8)}
3939
},
4040
columnDefault: {
4141
width: Math.floor(terminalWidth * 0.2),

test/unit/bin/helpers/sync/syncSpecsLogs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ describe("syncSpecsLogs", () => {
9292
syncSpecsLogs.__set__('getBorderConfig', getBorderConfigStub);
9393

9494
let options = getTableConfig();
95-
expect(options.columnDefault.width).to.equal(Math.floor(((process.stdout.columns)*0.9)*0.2));
95+
expect(options.columnDefault.width).to.equal(Math.floor(((process.stdout.columns) * 0.9) * 0.2));
9696
expect(options.columns[1].alignment).to.equal('center');
9797
expect(options.columns[2].alignment).to.equal('left');
9898
expect(options.columns[1].width).to.equal(1);
99-
expect(options.columns[2].width).to.equal(Math.floor(((process.stdout.columns)*0.9)*0.8));
99+
expect(options.columns[2].width).to.equal(Math.floor(((process.stdout.columns) * 0.9) * 0.8));
100100
expect(options.columnCount).to.equal(3);
101101
expect(getBorderConfigStub.calledOnce).to.be.true;
102102
});

0 commit comments

Comments
 (0)