summaryrefslogtreecommitdiffstats
path: root/src/app/shared/modules/tidy-table/order-by.pipe.spec.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/shared/modules/tidy-table/order-by.pipe.spec.ts')
-rw-r--r--src/app/shared/modules/tidy-table/order-by.pipe.spec.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/app/shared/modules/tidy-table/order-by.pipe.spec.ts b/src/app/shared/modules/tidy-table/order-by.pipe.spec.ts
index c856ebd..39d842e 100644
--- a/src/app/shared/modules/tidy-table/order-by.pipe.spec.ts
+++ b/src/app/shared/modules/tidy-table/order-by.pipe.spec.ts
@@ -71,4 +71,14 @@ describe('OrderByPipe', () => {
]
expect(pipe.transform(data,undefined,false).length).toBe(2);
});
+
+ it('should test orderByComparator when orderby parmeter is number ', () => {
+ const pipe = new OrderBy();
+
+ let data =[
+ {'vnf-type': '311','vnfc-type':'vnfc1','artifact-name':'artf1'},
+ {'vnf-type':'316','vnfc-type':'vnfc2','artifact-name':'artf2'}
+ ]
+ pipe.transform(data,"vnf-type",false);
+ });
});