Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / system / tests / modules / js_ajax_test / js / js_ajax_test.ajax.es6.js
index 627d2e38c16a2a8634f6a1740f16045ed376d850..116bad83f14b559fe36657a96e6838bbff61e7f8 100644 (file)
@@ -2,7 +2,7 @@
  * @file
  *  Testing behavior for JSWebAssertTest.
  */
-(function ($, Drupal) {
+(function($, Drupal) {
   /**
    * Test Ajax command.
    *
@@ -13,7 +13,7 @@
    * @param {string} response.selector
    *   A jQuery selector string.
    */
-  Drupal.AjaxCommands.prototype.jsAjaxTestCommand = function (ajax, response) {
+  Drupal.AjaxCommands.prototype.jsAjaxTestCommand = function(ajax, response) {
     const $domElement = $(response.selector);
     ajax.element_settings.cat = 'catbro';
 
@@ -22,6 +22,8 @@
       elementSettings: ajax.elementSettings.cat || {},
     };
 
-    $domElement.html(`<div id="js_ajax_test_form_element">${JSON.stringify(data)}</div>`);
+    $domElement.html(
+      `<div id="js_ajax_test_form_element">${JSON.stringify(data)}</div>`,
+    );
   };
-}(jQuery, Drupal));
+})(jQuery, Drupal);