Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
validateFilter(filter: models.IFilter): Promise;
// Other
print(): Promise;
refreshData(): Promise;
exportData(): Promise;
}
export const mockAppSpyObj = {
// Load
dashboardLoad: jasmine.createSpy("dashboardLoad").and.returnValue(Promise.resolve(null)),
validateDashboardLoad: jasmine.createSpy("validateDashboardLoad").and.callFake(models.validateDashboardLoad),
reportLoad: jasmine.createSpy("reportLoad").and.returnValue(Promise.resolve(null)),
validateReportLoad: jasmine.createSpy("validateReportLoad").and.callFake(models.validateReportLoad),
// Settings
updateSettings: jasmine.createSpy("updateSettings").and.returnValue(Promise.resolve(null)),
validateSettings: jasmine.createSpy("validateSettings").and.callFake(models.validateSettings),
// Pages
getPages: jasmine.createSpy("getPages").and.returnValue(Promise.resolve(null)),
setPage: jasmine.createSpy("setPage").and.returnValue(Promise.resolve(null)),
validatePage: jasmine.createSpy("validatePage").and.returnValue(Promise.resolve(null)),
// Visuals
getVisuals: jasmine.createSpy("getVisuals").and.returnValue(Promise.resolve(null)),
validateVisual: jasmine.createSpy("validateVisual").and.returnValue(Promise.resolve(null)),
// Filters
getFilters: jasmine.createSpy("getFilters").and.returnValue(Promise.resolve(null)),
setFilters: jasmine.createSpy("setFilters").and.returnValue(Promise.resolve(null)),
validateFilter: jasmine.createSpy("validateFilter").and.callFake(models.validateFilter),
// Other
print: jasmine.createSpy("print").and.returnValue(Promise.resolve(null)),
refreshData: jasmine.createSpy("refreshData").and.returnValue(Promise.resolve(null)),
exportData: jasmine.createSpy("exportData").and.returnValue(Promise.resolve(null)),
switchMode(): Promise;
save(): Promise;
saveAs(saveAsParameters: models.ISaveAsParameters): Promise;
setAccessToken(accessToken: string): Promise;
}
export const mockAppSpyObj = {
// Load
dashboardLoad: jasmine.createSpy("dashboardLoad").and.returnValue(Promise.resolve(null)),
validateDashboardLoad: jasmine.createSpy("validateDashboardLoad").and.callFake(models.validateDashboardLoad),
reportLoad: jasmine.createSpy("reportLoad").and.returnValue(Promise.resolve(null)),
validateReportLoad: jasmine.createSpy("validateReportLoad").and.callFake(models.validateReportLoad),
render: jasmine.createSpy("render").and.returnValue(Promise.resolve(null)),
// Settings
updateSettings: jasmine.createSpy("updateSettings").and.returnValue(Promise.resolve(null)),
validateSettings: jasmine.createSpy("validateSettings").and.callFake(models.validateSettings),
// Pages
getPages: jasmine.createSpy("getPages").and.returnValue(Promise.resolve(null)),
setPage: jasmine.createSpy("setPage").and.returnValue(Promise.resolve(null)),
validatePage: jasmine.createSpy("validatePage").and.returnValue(Promise.resolve(null)),
// Visuals
validateVisual: jasmine.createSpy("validateVisual").and.returnValue(Promise.resolve(null)),
// Filters
getFilters: jasmine.createSpy("getFilters").and.returnValue(Promise.resolve(null)),
setFilters: jasmine.createSpy("setFilters").and.returnValue(Promise.resolve(null)),
validateFilter: jasmine.createSpy("validateFilter").and.callFake(models.validateFilter),
// Other
print: jasmine.createSpy("print").and.returnValue(Promise.resolve(null)),
refreshData: jasmine.createSpy("refreshData").and.returnValue(Promise.resolve(null)),
exportData: jasmine.createSpy("exportData").and.returnValue(Promise.resolve(null)),
validateCreateReport: jasmine.createSpy("validateCreateReport").and.callFake(models.validateCreateReport),
switchMode: jasmine.createSpy("switchMode").and.returnValue(Promise.resolve(null)),