Make getPorts and setBreadcrumb tests work
This patch adds expectations to the tests and make them work. Partial-Bug: #1894127 Change-Id: Ic22033343c344a42148b0ec5a31bccb1e08478c6
This commit is contained in:
parent
2423bd0b04
commit
91298f9b5f
|
@ -154,7 +154,9 @@
|
||||||
|
|
||||||
describe('setBreadcrumb', function() {
|
describe('setBreadcrumb', function() {
|
||||||
it('sets breadcrumb items from specified array', function() {
|
it('sets breadcrumb items from specified array', function() {
|
||||||
service.setBreadcrumb(breadcrumb);
|
service.setBreadcrumb(['Identity', 'Roles']);
|
||||||
|
expect(navigations.text('Identity').length).toBe(1);
|
||||||
|
expect(navigations.text('Roles').length).toBe(1);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -621,6 +621,7 @@
|
||||||
neutronEnabled = true;
|
neutronEnabled = true;
|
||||||
model.initialize(true);
|
model.initialize(true);
|
||||||
scope.$apply();
|
scope.$apply();
|
||||||
|
expect(model.newInstanceSpec.ports.length).toBe(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should have the proper entries in allowedBootSources', function() {
|
it('should have the proper entries in allowedBootSources', function() {
|
||||||
|
|
Loading…
Reference in New Issue