diff --git a/services/wikiapiary/wikiapiary-installs.service.js b/services/wikiapiary/wikiapiary-installs.service.js index 3aa11e110da2a..222e16c4c875a 100644 --- a/services/wikiapiary/wikiapiary-installs.service.js +++ b/services/wikiapiary/wikiapiary-installs.service.js @@ -1,8 +1,6 @@ -'use strict' - -const Joi = require('joi') -const { metric } = require('../text-formatters') -const { BaseJsonService, NotFound } = require('..') +import Joi from 'joi' +import { metric } from '../text-formatters.js' +import { BaseJsonService, NotFound } from '../index.js' const documentation = `

@@ -48,7 +46,7 @@ const schema = Joi.object({ * * {@link https://www.mediawiki.org/wiki/Manual:Extensions MediaWiki Extensions Manual} */ -module.exports = class WikiapiaryInstalls extends BaseJsonService { +export default class WikiapiaryInstalls extends BaseJsonService { static category = 'downloads' static route = { base: 'wikiapiary', diff --git a/services/wikiapiary/wikiapiary-installs.tester.js b/services/wikiapiary/wikiapiary-installs.tester.js index fee38c87645f1..878ec756dd163 100644 --- a/services/wikiapiary/wikiapiary-installs.tester.js +++ b/services/wikiapiary/wikiapiary-installs.tester.js @@ -1,7 +1,6 @@ -'use strict' - -const t = (module.exports = require('../tester').createServiceTester()) -const { isMetric } = require('../test-validators') +import { createServiceTester } from '../tester.js' +import { isMetric } from '../test-validators.js' +export const t = await createServiceTester() t.create('Extension') .get('/extension/installs/ParserFunctions.json')