aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-09-04 15:56:52 +0530
committerTakamune Cho <takamune.cho@att.com>2019-09-06 17:50:07 +0000
commitb278a4c68382e5474bd5b989283f07e37c6f958f (patch)
tree21b3d17433b52e6992a9f5f4ea5bd202a8918a46 /src
parentdfe2746bd48fbe3039e163d3aa5e5f0e50b2b7ec (diff)
reference-dataform util- spec changes
Fixed erros and test case in this file Issue-ID: APPC-1632 Change-Id: I01b21f140d69f4a1a8c0b01bf59ea1d189c85f4b Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'src')
-rw-r--r--src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.spec.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.spec.ts b/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.spec.ts
index 7745035..47b6dfc 100644
--- a/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.spec.ts
+++ b/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.spec.ts
@@ -28,12 +28,13 @@ import { ReferenceDataFormUtil } from './reference-dataform.util';
import { NotificationsService } from 'angular2-notifications';
import { UtilityService } from '../../../shared/services/utilityService/utility.service';
import { HttpUtilService } from '../../../shared/services/httpUtil/http-util.service';
+import { APIService } from "../../../shared/services/cdt.apicall";
describe('ReferenceDataFormUtil', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [HttpClientModule],
- providers: [ReferenceDataFormUtil, HttpUtilService, NotificationsService, UtilityService, BaseRequestOptions, MockBackend,
+ providers: [ReferenceDataFormUtil, HttpUtilService, NotificationsService, UtilityService, BaseRequestOptions, MockBackend, APIService,
{
provide: Http,
useFactory: (backend: MockBackend, defaultOptions: BaseRequestOptions) => {
@@ -67,7 +68,7 @@ describe('ReferenceDataFormUtil', () => {
it('should test nullCheckForVnfcType and nullCheckForVnfcTypeList function', inject([ReferenceDataFormUtil], (service: ReferenceDataFormUtil) => {
let returnValueVnfcType = service.nullCheckForVnfcType(false);
- let returnValueVnfcTypeList = service.nullCheckForVnfcTypeList('null');
+ let returnValueVnfcTypeList = service.nullCheckForVnfcTypeList(null);
expect(returnValueVnfcType).toBe(true);
expect(returnValueVnfcTypeList).toBe(true);
}));