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:
Sam Smith 2015-11-25 14:34:11 +00:00
parent c327ff1859
commit fbc696177a

View file

@ -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();
}