Add creation test to PolicyControlComponent 60/5460/2
authorelinuxhenrik <henrik.b.andersson@est.tech>
Mon, 18 Jan 2021 16:06:18 +0000 (17:06 +0100)
committerelinuxhenrik <henrik.b.andersson@est.tech>
Tue, 19 Jan 2021 07:05:45 +0000 (08:05 +0100)
commitc491ddd364164e8b7db6ccb502087383bb4be789
tree4c9fecfc55980558377063b088067c9713c4f5ff
parentf34ec0823b56ceaf7a6073be6fc530b0d432b37d
Add creation test to PolicyControlComponent

Add test that PolicyControlComponent is created.

Cleaned away non functional sorting in PolicyTypeDataSource and made it
injectable.

Changed so PolicyTypeDataSource is injected in PolicyControlComponent
instead of created with new.

Change-Id: I8f6c80c37b9491b3508e34accecb669905376b38
Issue-ID: NONRTRIC-383
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
.gitignore
webapp-frontend/src/app/mock/policytypes.json
webapp-frontend/src/app/policy-control/policy-control.component.spec.ts
webapp-frontend/src/app/policy-control/policy-control.component.ts
webapp-frontend/src/app/policy-control/policy-type.datasource.ts