Skip to content

Commit

Permalink
Migrate new Wikiapiary badge
Browse files Browse the repository at this point in the history
  • Loading branch information
PyvesB committed Jul 8, 2021
1 parent b4660d4 commit 813cbc3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
10 changes: 4 additions & 6 deletions services/wikiapiary/wikiapiary-installs.service.js
Original file line number Diff line number Diff line change
@@ -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 = `
<p>
Expand Down Expand Up @@ -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',
Expand Down
7 changes: 3 additions & 4 deletions services/wikiapiary/wikiapiary-installs.tester.js
Original file line number Diff line number Diff line change
@@ -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')
Expand Down

0 comments on commit 813cbc3

Please sign in to comment.