summaryrefslogtreecommitdiffstats
path: root/src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts')
-rw-r--r--src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts b/src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts
index a1b4507..a6ba8c3 100644
--- a/src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts
+++ b/src/app/vnfs/build-artifacts/build-artifacts.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
@@ -145,4 +147,16 @@ describe('BuildDesignComponent', () => {
expect(spy).toHaveBeenCalled();
});
+
+ it('Should test updateAccessUpdatePages method to call setAllowOtherUpdates with true', ()=> {
+ spyOn(component, 'setAllowOtherUpdates');
+ component.updateAccessUpdatePages('config', [{'action' : 'configModify'}, {'action' : 'config'}]);
+ expect(component.setAllowOtherUpdates).toHaveBeenCalledWith(true);
+ });
+
+ it('Should test updateAccessUpdatePages method to call setAllowOtherUpdates with fasle', ()=> {
+ spyOn(component, 'setAllowOtherUpdates');
+ component.updateAccessUpdatePages('config', [{'action' : 'configModify'}]);
+ expect(component.setAllowOtherUpdates).toHaveBeenCalledWith(false);
+ });
});