diff options
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.component.spec.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.component.spec.ts b/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.component.spec.ts index 3d899c1..fbf6d72 100644 --- a/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.component.spec.ts +++ b/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.component.spec.ts @@ -2,6 +2,8 @@ ============LICENSE_START========================================== =================================================================== Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. + +Modification Copyright (C) 2018 IBM. =================================================================== Unless otherwise specified, all software contained herein is licensed @@ -993,4 +995,14 @@ describe('ReferenceDataformComponent', () => { component.deviceProtocolChange(); expect(spy).toHaveBeenCalled() }); + + it('should test uplaod function', () => { + let content = "Hello World"; + let data = new Blob([content], { type: 'text/plain' }); + let arrayOfBlob = new Array<Blob>(); + arrayOfBlob.push(data); + let file = new File(arrayOfBlob, "Mock.XLS"); + let evnt = {target: {files: [file]}}; + component.upload(evnt); + }); });
\ No newline at end of file |