summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-overlay
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-sdk/epsdk-app-overlay')
-rw-r--r--ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/sql/sql.service.spec.ts29
1 files changed, 25 insertions, 4 deletions
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/sql/sql.service.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/sql/sql.service.spec.ts
index 57db6fb6..68978d90 100644
--- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/sql/sql.service.spec.ts
+++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/sql/sql.service.spec.ts
@@ -2,15 +2,36 @@ import { TestBed } from '@angular/core/testing';
import { SqlService } from './sql.service';
import { HttpClientTestingModule } from '@angular/common/http/testing';
+import { HttpClient } from '@angular/common/http';
+import { environment } from 'src/environments/environment';
describe('SqlService', () => {
- beforeEach(() =>
- TestBed.configureTestingModule({
- imports: [HttpClientTestingModule]
- }));
+
+ let service: SqlService;
+
+ beforeEach(() => {TestBed.configureTestingModule({
+ imports: [HttpClientTestingModule],
+ providers: [SqlService, HttpClient, HttpClientTestingModule]
+ })
+ service = TestBed.get(SqlService);
+});
it('should be created', () => {
const service: SqlService = TestBed.get(SqlService);
expect(service).toBeTruthy();
});
+
+ it('should getSQLTabData', () => {
+ service.getSQLTabData("test").subscribe((res) => {
+ expect(res).toBe(environment);
+ });
+ });
+
+ it('should postSQLValidateAndSave', () => {
+ service.postSQLValidateAndSave("test").subscribe((res) => {
+ expect(res).toBe(environment)
+ });
+ });
+
+
});