Jdlrobson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/183982
Change subject: Hygiene: Remove duplicate test
......................................................................
Hygiene: Remove duplicate test
test_modules is more complete
Change-Id: I5a36e670c5bb9ea9ab829e6b3694d35d682c35e6
---
D tests/qunit/test_application.js
1 file changed, 0 insertions(+), 28 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/82/183982/1
diff --git a/tests/qunit/test_application.js b/tests/qunit/test_application.js
deleted file mode 100644
index bc9e821..0000000
--- a/tests/qunit/test_application.js
+++ /dev/null
@@ -1,28 +0,0 @@
-//jscs:disable jsDoc
-( function ( $, M ) {
- QUnit.module( 'MobileFrontend modules' );
-
- QUnit.test( 'define()', 1, function () {
- M.define( 'testModule1', 'test module 1' );
- QUnit.throws(
- function () {
- M.define( 'testModule1', 'again' );
- },
- /already exists/,
- 'throws an error when module already exists'
- );
- } );
-
- QUnit.test( 'require()', 2, function ( assert ) {
- QUnit.throws(
- function () {
- M.require( 'dummy' );
- },
- /not found/,
- 'throws an error when module doesn\'t exist'
- );
- M.define( 'testModule2', 'test module 2' );
- assert.strictEqual( M.require( 'testModule2' ), 'test module 2'
);
- } );
-
-}( jQuery, mw.mobileFrontend ) );
--
To view, visit https://gerrit.wikimedia.org/r/183982
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5a36e670c5bb9ea9ab829e6b3694d35d682c35e6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits