Add more folders to strict compile (#8954)

* add more folders to strictire compile, add more strict compile options

* update ci

* remove unnecessary assertion
This commit is contained in:
Anthony Dresser
2020-01-27 16:26:49 -08:00
committed by GitHub
parent fefe1454de
commit 64929de09d
81 changed files with 630 additions and 644 deletions

View File

@@ -11,9 +11,10 @@ const testText = '<div>test text</div>';
suite('Grid shared services tests', () => {
test('textFormatter should encode HTML when formatting a DBCellValue object', () => {
// If I format a DBCellValue object that contains HTML
let cellValue = new SharedServices.DBCellValue();
cellValue.displayValue = testText;
cellValue.isNull = false;
let cellValue = {
displayValue: testText,
isNull: false
};
let formattedHtml = SharedServices.textFormatter(undefined, undefined, cellValue, undefined, undefined);
// Then the result is HTML for a span element containing the cell value's display value as plain text

View File

@@ -178,7 +178,7 @@ suite('TableDataView', () => {
function populateData(row: number, column: number): any[] {
let data: Array<{ [key: string]: string }> = [];
for (let i: number = 0; i < row; i++) {
let row = {};
let row: { [key: string]: string } = {};
for (let j: number = 0; j < column; j++) {
row[getColumnName(j)] = getCellValue(i, j);
}