Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/sidebars/menu_spec.rb')
-rw-r--r--spec/lib/sidebars/menu_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/lib/sidebars/menu_spec.rb b/spec/lib/sidebars/menu_spec.rb
index 00202ac7d2b..e59a8cd2163 100644
--- a/spec/lib/sidebars/menu_spec.rb
+++ b/spec/lib/sidebars/menu_spec.rb
@@ -33,6 +33,8 @@ RSpec.describe Sidebars::Menu, feature_category: :navigation do
item_id: 'id1',
title: 'Is active',
link: 'foo2',
+ avatar: '/avatar.png',
+ entity_id: 123,
active_routes: { controller: 'fooc' }
))
menu.add_item(Sidebars::MenuItem.new(
@@ -51,6 +53,9 @@ RSpec.describe Sidebars::Menu, feature_category: :navigation do
{
title: "Title",
icon: nil,
+ avatar: nil,
+ avatar_shape: 'rect',
+ entity_id: nil,
link: "foo2",
is_active: true,
pill_count: nil,
@@ -60,6 +65,8 @@ RSpec.describe Sidebars::Menu, feature_category: :navigation do
id: 'id1',
title: "Is active",
icon: nil,
+ avatar: '/avatar.png',
+ entity_id: 123,
link: "foo2",
is_active: true,
pill_count: nil,
@@ -69,6 +76,8 @@ RSpec.describe Sidebars::Menu, feature_category: :navigation do
id: 'id2',
title: "Not active",
icon: nil,
+ avatar: nil,
+ entity_id: nil,
link: "foo3",
is_active: false,
pill_count: 10,
@@ -85,6 +94,9 @@ RSpec.describe Sidebars::Menu, feature_category: :navigation do
{
title: "Title",
icon: nil,
+ avatar: nil,
+ avatar_shape: 'rect',
+ entity_id: nil,
link: nil,
is_active: false,
pill_count: 'foo',