resourceloader: Only register 'jquery.qunit' in test context
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 30 Jul 2019 00:05:42 +0000 (01:05 +0100)
committerKrinkle <krinklemail@gmail.com>
Tue, 30 Jul 2019 16:00:59 +0000 (16:00 +0000)
Change-Id: I0ea4bb73d5b886ea903a19a12bdd464778af0002

resources/Resources.php
tests/qunit/QUnitTestResources.php

index da01122..e29d658 100644 (file)
@@ -266,11 +266,6 @@ return [
                'scripts' => 'resources/src/jquery/jquery.mw-jump.js',
                'targets' => [ 'desktop', 'mobile' ],
        ],
-       'jquery.qunit' => [
-               'scripts' => 'resources/lib/qunitjs/qunit.js',
-               'styles' => 'resources/lib/qunitjs/qunit.css',
-               'targets' => [ 'desktop', 'mobile' ],
-       ],
        'jquery.spinner' => [
                'scripts' => 'resources/src/jquery.spinner/spinner.js',
                'styles' => 'resources/src/jquery.spinner/spinner.less',
index 4969a8b..d55b603 100644 (file)
@@ -6,6 +6,12 @@ return [
 
        /* Utilities */
 
+       'jquery.qunit' => [
+               'scripts' => 'resources/lib/qunitjs/qunit.js',
+               'styles' => 'resources/lib/qunitjs/qunit.css',
+               'targets' => [ 'desktop', 'mobile' ],
+       ],
+
        'test.sinonjs' => [
                'scripts' => [
                        'tests/qunit/suites/resources/test.sinonjs/index.js',