Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)),
save: jasmine.createSpy("save").and.returnValue(Promise.resolve(null)),
saveAs: jasmine.createSpy("saveAs").and.returnValue(Promise.resolve(null)),
setAccessToken: jasmine.createSpy("setAccessToken").and.returnValue(Promise.resolve(null)),
reset() {
mockAppSpyObj.dashboardLoad.calls.reset();
mockAppSpyObj.validateDashboardLoad.calls.reset();
mockAppSpyObj.reportLoad.calls.reset();
mockAppSpyObj.validateReportLoad.calls.reset();
mockAppSpyObj.updateSettings.calls.reset();
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)),
reset() {
mockAppSpyObj.dashboardLoad.calls.reset();
mockAppSpyObj.validateDashboardLoad.calls.reset();
mockAppSpyObj.reportLoad.calls.reset();
mockAppSpyObj.validateReportLoad.calls.reset();
mockAppSpyObj.updateSettings.calls.reset();
mockAppSpyObj.validateSettings.calls.reset();
mockAppSpyObj.getPages.calls.reset();
mockAppSpyObj.setPage.calls.reset();
mockAppSpyObj.validatePage.calls.reset();
mockAppSpyObj.getVisuals.calls.reset();