Code Review
/
portal
/
nonrtric-controlpanel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Uplift to Angular 9
[portal/nonrtric-controlpanel.git]
/
webapp-frontend
/
src
/
app
/
services
/
policy
/
policy.service.spec.ts
diff --git
a/webapp-frontend/src/app/services/policy/policy.service.spec.ts
b/webapp-frontend/src/app/services/policy/policy.service.spec.ts
index
d37bb21
..
095443b
100644
(file)
--- a/
webapp-frontend/src/app/services/policy/policy.service.spec.ts
+++ b/
webapp-frontend/src/app/services/policy/policy.service.spec.ts
@@
-44,8
+44,8
@@
describe('PolicyService', () => {
let emptyPolicyType: PolicyTypes;
beforeEach(() => {
let emptyPolicyType: PolicyTypes;
beforeEach(() => {
- policyService = TestBed.
ge
t(PolicyService);
- httpTestingController = TestBed.
ge
t(HttpTestingController);
+ policyService = TestBed.
injec
t(PolicyService);
+ httpTestingController = TestBed.
injec
t(HttpTestingController);
expectedPolicytypes = {
"policytype_ids": [
"",
expectedPolicytypes = {
"policytype_ids": [
"",
@@
-85,8
+85,8
@@
describe('PolicyService', () => {
let emptyPolicyInstances: PolicyInstances;
let policyTypeId = '1';
beforeEach(() => {
let emptyPolicyInstances: PolicyInstances;
let policyTypeId = '1';
beforeEach(() => {
- policyService = TestBed.
ge
t(PolicyService);
- httpTestingController = TestBed.
ge
t(HttpTestingController);
+ policyService = TestBed.
injec
t(PolicyService);
+ httpTestingController = TestBed.
injec
t(HttpTestingController);
expectedPolicyInstances = {
"policy_ids": [
"2100",
expectedPolicyInstances = {
"policy_ids": [
"2100",
@@
-125,8
+125,8
@@
describe('PolicyService', () => {
let emptyPolicyInstances: PolicyInstances;
let policyId = "2000";
beforeEach(() => {
let emptyPolicyInstances: PolicyInstances;
let policyId = "2000";
beforeEach(() => {
- policyService = TestBed.
ge
t(PolicyService);
- httpTestingController = TestBed.
ge
t(HttpTestingController);
+ policyService = TestBed.
injec
t(PolicyService);
+ httpTestingController = TestBed.
injec
t(HttpTestingController);
expectedPolicyInstance = {
"policy_id": "2000",
"policytype_id": "1",
expectedPolicyInstance = {
"policy_id": "2000",
"policytype_id": "1",