mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-29 01:10:16 +00:00
Merge "build: Update eslint to 0.4.0 and make pass"
This commit is contained in:
commit
d7b6544dff
|
@ -4,12 +4,13 @@
|
|||
* @copyright 2011-2017 Cite VisualEditor Team and others; see AUTHORS.txt
|
||||
* @license The MIT License (MIT); see LICENSE.txt
|
||||
*/
|
||||
var MWWIKITEXT_MOCK_API = true;
|
||||
|
||||
window.MWWIKITEXT_MOCK_API = true;
|
||||
|
||||
QUnit.module( 've.ui.MWWikitextStringTransferHandler (Cite)', QUnit.newMwEnvironment( {
|
||||
setup: function () {
|
||||
// Mock XHR for mw.Api()
|
||||
this.server = MWWIKITEXT_MOCK_API ? this.sandbox.useFakeServer() : null;
|
||||
this.server = window.MWWIKITEXT_MOCK_API ? this.sandbox.useFakeServer() : null;
|
||||
ve.test.utils.mwEnvironment.setup.call( this );
|
||||
},
|
||||
teardown: ve.test.utils.mwEnvironment.teardown
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"test": "grunt test"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint-config-wikimedia": "0.3.0",
|
||||
"eslint-config-wikimedia": "0.4.0",
|
||||
"grunt": "1.0.1",
|
||||
"grunt-banana-checker": "0.6.0",
|
||||
"grunt-eslint": "19.0.0",
|
||||
|
|
Loading…
Reference in a new issue