mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-09-24 19:00:15 +00:00
Fix RelatedPagesGateway unit test failures
I33936a3 didn't introduce a regression but highlighted an issue with the fixture in the RelatedPagesGateway unit test: the fixture is in the legacy JSON format despite the API request URL including formatversion=2. Change-Id: Id372d022625d88eea685267ea6b6484cf6b28cbc
This commit is contained in:
parent
c327ff1859
commit
fbc696177a
|
@ -2,26 +2,25 @@
|
|||
var RelatedPagesGateway = mw.relatedPages.RelatedPagesGateway,
|
||||
relatedPages = {
|
||||
query: {
|
||||
pages: {
|
||||
123: {
|
||||
id: 123,
|
||||
pages: [
|
||||
{
|
||||
pageid: 123,
|
||||
title: 'Oh noes',
|
||||
ns: 0,
|
||||
thumbnail: {
|
||||
source: 'http://placehold.it/200x100'
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
emptyRelatedPages = {
|
||||
query: {
|
||||
pages: {
|
||||
}
|
||||
pages: []
|
||||
}
|
||||
};
|
||||
|
||||
QUnit.module( 'RelatedArticles readMore - Related pages api', {
|
||||
QUnit.module( 'ext.relatedArticles.gateway', {
|
||||
setup: function () {
|
||||
this.api = new mw.Api();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue