Merge "Make getPorts and setBreadcrumb tests work"

This commit is contained in:
Zuul 2020-09-14 22:39:23 +00:00 committed by Gerrit Code Review
commit 5056b9bbe6
2 changed files with 4 additions and 1 deletions

View File

@ -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);
}); });
}); });

View File

@ -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() {