Skip to content

Commit b2740d3

Browse files
committed
Update HeaderRow.js
Added a variable for the overwrite boolean to the test code.
1 parent 9591785 commit b2740d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

HeaderRow.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,11 @@ function test_HeaderRow() {
6262
headerRowNumber = 3,
6363
startColumnNumber = 2,
6464
columnTitles = ['col1', 'col2', 'col3'],
65-
hr = new HeaderRow(ss, sheetName, headerRowNumber, startColumnNumber, columnTitles, true);
65+
overwritePrevious = true,
66+
hr = new HeaderRow(ss, sheetName, headerRowNumber, startColumnNumber, columnTitles, overwritePrevious);
6667
hr.freezeHeaderRow();
6768
hr.setHeaderFontWeightBold();
6869
hr.setFontStyle('oblique');
6970
hr.addCommentToColumn('Comment added ' + Date(), 2);
7071
hr.setHeaderRowName('header');
71-
}
72+
}

0 commit comments

Comments
 (0)