api-testing: Use wikimedia/mocha eslint config
Change-Id: Iec346d87f252c66fbff1e0fa522d7440df6f1764
This commit is contained in:
parent
c6a3d5cc6a
commit
08510de602
8 changed files with 19 additions and 21 deletions
14
package-lock.json
generated
14
package-lock.json
generated
|
|
@ -3525,9 +3525,9 @@
|
|||
}
|
||||
},
|
||||
"eslint-config-wikimedia": {
|
||||
"version": "0.16.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-config-wikimedia/-/eslint-config-wikimedia-0.16.0.tgz",
|
||||
"integrity": "sha512-xCut9EcQ+Z4kLwPcNLWvXZMiGj4JPjoLW0WmFHgNacTnD8bsNlJQ0tBhEP/U2eWyJL/D4iQDBUX77TgJ2hG/7A==",
|
||||
"version": "0.16.1",
|
||||
"resolved": "https://registry.npmjs.org/eslint-config-wikimedia/-/eslint-config-wikimedia-0.16.1.tgz",
|
||||
"integrity": "sha512-VFP+zOaehZgbcH1TCeH6iBZuYv83mZMvu+YYntblbmFrw36Oo9lcNWiUL95SAE+5JtkGtAy51NLE1T61XJYn5w==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"eslint": "^7.1.0",
|
||||
|
|
@ -11294,16 +11294,16 @@
|
|||
"dev": true
|
||||
},
|
||||
"vscode-json-languageservice": {
|
||||
"version": "3.6.0",
|
||||
"resolved": "https://registry.npmjs.org/vscode-json-languageservice/-/vscode-json-languageservice-3.6.0.tgz",
|
||||
"integrity": "sha512-dXzFywypUZ9T0tjr4fREZiknXDz6vAGx1zsxbQY1+9DOpjMfbz0VLP873KmcbuvL4K3nseKTxc4TKHu8kLXRMw==",
|
||||
"version": "3.7.0",
|
||||
"resolved": "https://registry.npmjs.org/vscode-json-languageservice/-/vscode-json-languageservice-3.7.0.tgz",
|
||||
"integrity": "sha512-nGLqcBhTjdfkl8Dz9sYGK/ZCTjscYFoIjYw+qqkWB+vyNfM0k/AyIoT73DQvB/PArteCKjEVfQUF72GRZEDSbQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"jsonc-parser": "^2.2.1",
|
||||
"vscode-languageserver-textdocument": "^1.0.1",
|
||||
"vscode-languageserver-types": "^3.15.1",
|
||||
"vscode-nls": "^4.1.2",
|
||||
"vscode-uri": "^2.1.1"
|
||||
"vscode-uri": "^2.1.2"
|
||||
}
|
||||
},
|
||||
"vscode-languageserver-textdocument": {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
"@wdio/sauce-service": "6.1.9",
|
||||
"@wdio/sync": "6.1.8",
|
||||
"api-testing": "1.1.0",
|
||||
"eslint-config-wikimedia": "0.16.0",
|
||||
"eslint-config-wikimedia": "0.16.1",
|
||||
"grunt": "1.1.0",
|
||||
"grunt-banana-checker": "0.9.0",
|
||||
"grunt-contrib-copy": "1.0.0",
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
{
|
||||
"extends": [
|
||||
"wikimedia/server"
|
||||
"wikimedia/server",
|
||||
"wikimedia/mocha"
|
||||
],
|
||||
"env": {
|
||||
"mocha": true
|
||||
},
|
||||
"rules": {
|
||||
"camelcase": "off",
|
||||
"require-atomic-updates": "off"
|
||||
"mocha/no-setup-in-describe": "off"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ describe( 'POST /page', () => {
|
|||
} );
|
||||
} );
|
||||
|
||||
describe( 'request validation', async () => {
|
||||
describe( 'request validation', () => {
|
||||
const title = utils.title( 'Edit Test ' );
|
||||
|
||||
const reqBody = {
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ describe( 'Page History', () => {
|
|||
|
||||
} );
|
||||
|
||||
describe( 'Revision deletion and un-deletion', async () => {
|
||||
describe( 'Revision deletion and un-deletion', () => {
|
||||
let edits;
|
||||
it( 'Should get total number of edits and editors when edits are hidden and shown', async () => {
|
||||
edits = await setupDeletedPage();
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ describe( 'Revision', () => {
|
|||
} );
|
||||
} );
|
||||
|
||||
describe( 'GET /revision/{id}/bare', async () => {
|
||||
describe( 'GET /revision/{id}/bare', () => {
|
||||
it( 'should successfully get information about revision', async () => {
|
||||
const page = utils.title( 'Revision' );
|
||||
const { newrevid, pageid, param_summary } = await mindy.edit( page, {
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ describe( 'PUT /page/{title}', () => {
|
|||
} );
|
||||
} );
|
||||
|
||||
describe( 'request validation', async () => {
|
||||
describe( 'request validation', () => {
|
||||
const title = utils.title( 'Edit Test ' );
|
||||
|
||||
const reqBody = {
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ describe( 'The parse action', function () {
|
|||
assert.include( result.parse.text[ '*' ], 'another <i>test</i>' );
|
||||
} );
|
||||
|
||||
describe( 'with magic words', async () => {
|
||||
describe( 'with magic words', () => {
|
||||
it( 'supports __FORCETOC__', async () => {
|
||||
const result = await alice.action( 'parse', {
|
||||
title: pageTitle,
|
||||
|
|
@ -60,7 +60,7 @@ describe( 'The parse action', function () {
|
|||
} );
|
||||
} );
|
||||
|
||||
describe( 'with variables', async () => {
|
||||
describe( 'with variables', () => {
|
||||
it( 'supports {{PAGENAMEE}}', async () => {
|
||||
const result = await alice.action( 'parse', {
|
||||
title: pageTitle,
|
||||
|
|
@ -99,7 +99,7 @@ describe( 'The parse action', function () {
|
|||
} );
|
||||
} );
|
||||
|
||||
describe( 'with templates', async () => {
|
||||
describe( 'with templates', () => {
|
||||
const templateTitle = utils.title( 'Template:Parsing_' );
|
||||
const templateText = '{{{greeting|Hello}}} {{{1|world}}}!';
|
||||
|
||||
|
|
@ -135,7 +135,7 @@ describe( 'The parse action', function () {
|
|||
} );
|
||||
} );
|
||||
|
||||
describe( 'with parser functions', async () => {
|
||||
describe( 'with parser functions', () => {
|
||||
it( 'supports {{plural}}', async () => {
|
||||
const result = await alice.action( 'parse', {
|
||||
title: pageTitle,
|
||||
|
|
|
|||
Loading…
Reference in a new issue