Adding tests for DataResourceDataProvider (#11743)

* tests for getRow method

* use suiteSetup

* added more tests

* revert changes to gridOutput.component.ts

* mocked out services for DataResourceDataProvider

* add test for serializeResults

* change path to fsPath

* fix param type and use fs promises

* use async in startSerialization

* mock ContextService
This commit is contained in:
Lucy Zhang
2020-08-19 17:08:27 -07:00
committed by GitHub
parent 29fbc7d952
commit 69a96a7d5d
2 changed files with 128 additions and 1 deletions

View File

@@ -225,7 +225,7 @@ class DataResourceTable extends GridTableBase<any> {
}
}
class DataResourceDataProvider implements IGridDataProvider {
export class DataResourceDataProvider implements IGridDataProvider {
private rows: ICellValue[][];
constructor(source: IDataResource,
private resultSet: ResultSetSummary,