Added subscriber S/C tags
diff --git a/views/ngXosViews/diagnostic/spec/serviceChain.test.js b/views/ngXosViews/diagnostic/spec/serviceChain.test.js
index af9a701..14255e2 100644
--- a/views/ngXosViews/diagnostic/spec/serviceChain.test.js
+++ b/views/ngXosViews/diagnostic/spec/serviceChain.test.js
@@ -172,14 +172,17 @@
const services = [
{
id: 1,
+ name: 'vbng',
humanReadableName: 'vbng'
},
{
id: 2,
+ name: 'vsg',
humanReadableName: 'vsg'
},
{
id: 3,
+ name: 'volt',
humanReadableName: 'volt'
}
];
@@ -188,9 +191,10 @@
let tree = Service.buildServiceTree(services, coarseTenants);
expect(tree.type).toBe('subscriber');
- expect(tree.children[0].humanReadableName).toBe('volt');
- expect(tree.children[0].children[0].humanReadableName).toBe('vsg');
- expect(tree.children[0].children[0].children[0].humanReadableName).toBe('vbng');
+ expect(tree.children[0].name).toBe('volt');
+ expect(tree.children[0].service).toBeDefined();
+ expect(tree.children[0].children[0].name).toBe('vsg');
+ expect(tree.children[0].children[0].children[0].name).toBe('vbng');
});
});