aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/shared/pipes/vm-filtering.pipe.spec.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/shared/pipes/vm-filtering.pipe.spec.ts')
-rw-r--r--src/app/shared/pipes/vm-filtering.pipe.spec.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/app/shared/pipes/vm-filtering.pipe.spec.ts b/src/app/shared/pipes/vm-filtering.pipe.spec.ts
index 9c544cb..08df4de 100644
--- a/src/app/shared/pipes/vm-filtering.pipe.spec.ts
+++ b/src/app/shared/pipes/vm-filtering.pipe.spec.ts
@@ -38,6 +38,16 @@ describe('VmFilteringPipe', () => {
expect(pipe.transform(objArray,"ConfigScaleOut",1, {})[0].type,).toBe("conScale")
});
+ it('should return configscalein values if template id matches',()=>{
+ const pipe = new VmFilteringPipe();
+
+ let objArray = [
+ {action:"Configure","template-id":2,"type":"con"},
+ {action:"ConfigScaleIn","template-id":1,"type":"conScale"}
+ ]
+ expect(pipe.transform(objArray,"ConfigScaleIn",1, {})[0].type,).toBe("conScale")
+
+ });
it('should return configure calues',()=>{
const pipe = new VmFilteringPipe();