From 101d892a36f3659f3e26a62e5212e811f403c9ef Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Sat, 10 Jul 2021 10:12:58 +0100
Subject: [PATCH] Issue #3222313 by paulocs: Rename scripts.js to something
 more descriptive

---
 core/tests/Drupal/FunctionalTests/Theme/OliveroTest.php         | 2 +-
 .../olivero/js/{scripts.es6.js => navigation-utils.es6.js}      | 0
 core/themes/olivero/js/{scripts.js => navigation-utils.js}      | 0
 core/themes/olivero/olivero.libraries.yml                       | 2 +-
 4 files changed, 2 insertions(+), 2 deletions(-)
 rename core/themes/olivero/js/{scripts.es6.js => navigation-utils.es6.js} (100%)
 rename core/themes/olivero/js/{scripts.js => navigation-utils.js} (100%)

diff --git a/core/tests/Drupal/FunctionalTests/Theme/OliveroTest.php b/core/tests/Drupal/FunctionalTests/Theme/OliveroTest.php
index 8d28be1080a0..fff24199df40 100644
--- a/core/tests/Drupal/FunctionalTests/Theme/OliveroTest.php
+++ b/core/tests/Drupal/FunctionalTests/Theme/OliveroTest.php
@@ -38,7 +38,7 @@ public function testBaseLibraryAvailable() {
     $this->drupalGet('');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertSession()->responseContains('olivero/css/base/base.css');
-    $this->assertSession()->responseContains('olivero/js/scripts.js');
+    $this->assertSession()->responseContains('olivero/js/navigation-utils.js');
   }
 
   /**
diff --git a/core/themes/olivero/js/scripts.es6.js b/core/themes/olivero/js/navigation-utils.es6.js
similarity index 100%
rename from core/themes/olivero/js/scripts.es6.js
rename to core/themes/olivero/js/navigation-utils.es6.js
diff --git a/core/themes/olivero/js/scripts.js b/core/themes/olivero/js/navigation-utils.js
similarity index 100%
rename from core/themes/olivero/js/scripts.js
rename to core/themes/olivero/js/navigation-utils.js
diff --git a/core/themes/olivero/olivero.libraries.yml b/core/themes/olivero/olivero.libraries.yml
index 812983ad1107..659f0ae3dd2b 100644
--- a/core/themes/olivero/olivero.libraries.yml
+++ b/core/themes/olivero/olivero.libraries.yml
@@ -57,7 +57,7 @@ global-styling:
 
   js:
     js/checkbox.js: {}
-    js/scripts.js: {}
+    js/navigation-utils.js: {}
     js/navigation.js: {}
     js/second-level-navigation.js: {}
   dependencies:
-- 
GitLab