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:
Tatiana Ovchinnikova 2020-09-11 12:58:28 -05:00
parent 2423bd0b04
commit 91298f9b5f
2 changed files with 4 additions and 1 deletions

View File

@ -154,7 +154,9 @@
describe('setBreadcrumb', 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);
});
});

View File

@ -621,6 +621,7 @@
neutronEnabled = true;
model.initialize(true);
scope.$apply();
expect(model.newInstanceSpec.ports.length).toBe(0);
});
it('should have the proper entries in allowedBootSources', function() {