summaryrefslogtreecommitdiffstats
path: root/src/app/vnfs/build-artifacts/parameter-definitions/parameter.component.spec.ts
diff options
context:
space:
mode:
authorsj108s <sj108s@us.att.com>2018-03-15 20:26:47 +0530
committersj108s <sj108s@us.att.com>2018-03-15 20:33:07 +0530
commit90174648e4553018398f88c6acbd9dc905aa17ff (patch)
treee2f1ad12c68d10020e8fb7681910f4ec7c4d8915 /src/app/vnfs/build-artifacts/parameter-definitions/parameter.component.spec.ts
parent7cf978ff9f510733dce1cf70693feedcb5ffbccd (diff)
Added few more test case & fixed modal in template
Added few more test cases to improve code coverage and changed trigger command for modal in template page from Enter to ctrl-4 Issue-ID: APPC-697 Change-Id: I4a158ba687bad0bb2f808428333083200714f18a Signed-off-by: sj108s <sj108s@us.att.com>
Diffstat (limited to 'src/app/vnfs/build-artifacts/parameter-definitions/parameter.component.spec.ts')
-rw-r--r--src/app/vnfs/build-artifacts/parameter-definitions/parameter.component.spec.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/app/vnfs/build-artifacts/parameter-definitions/parameter.component.spec.ts b/src/app/vnfs/build-artifacts/parameter-definitions/parameter.component.spec.ts
index 0d220c8..7e248e3 100644
--- a/src/app/vnfs/build-artifacts/parameter-definitions/parameter.component.spec.ts
+++ b/src/app/vnfs/build-artifacts/parameter-definitions/parameter.component.spec.ts
@@ -176,7 +176,23 @@ describe('ParameterComponent', () => {
expect(obj['response-keys'][4]['key-name']).toBeNull;
expect(obj['response-keys'][4]['key-value']).toBeNull;
}));
+
+ it('should read file key file content...', () => {
+ let file = new File(["testing"], "foo.XLS", {type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});
+ let uploadType = 'keyfile';
+ let input = {files: [file]};
+ component.fileChange(input, uploadType);
+ });
+
+
+ it('should read file key file content...', () => {
+ let file = new File(["testing"], "foo.XLS", {type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});
+ let uploadType = 'pdfile';
+ let input = {files: [file]};
+
+ component.fileChange(input, uploadType);
+ });
});