aboutsummaryrefslogtreecommitdiffstats
path: root/tests/api-testing/REST/Transform.js
diff options
context:
space:
mode:
authordaniel <dkinzler@wikimedia.org>2022-07-20 20:19:59 +0200
committerDaniel Kinzler <dkinzler@wikimedia.org>2022-07-22 12:12:55 +0000
commit6236b1f2f434195e89b4d617a8ef2da9f724383b (patch)
treead27017677c533abc592ea49daab66f63e69c273 /tests/api-testing/REST/Transform.js
parent01c16063ad448de1b66d29ca3132a3d8fc39169b (diff)
downloadmediawikicore-6236b1f2f434195e89b4d617a8ef2da9f724383b.tar.gz
mediawikicore-6236b1f2f434195e89b4d617a8ef2da9f724383b.zip
Move knowledge about the attribs array out of TransformContext
This renames TransformContext to HTMLTransformInput. It is becoming a wrapper around the input HTML, with a bunch of optional context data attached. This introduces a factory method for HTMLTransformInput, so we can extract knowledge about the structure of the $attribs array from HTMLTransformInput. This also allows us to inject Document objects and perhaps PageBundle objects, instead of just arrays. Change-Id: I66f9c5dbb50c6bf1f582adad7766422216482402
Diffstat (limited to 'tests/api-testing/REST/Transform.js')
-rw-r--r--tests/api-testing/REST/Transform.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/api-testing/REST/Transform.js b/tests/api-testing/REST/Transform.js
index 8251d6f1189a..f95fa2c492c7 100644
--- a/tests/api-testing/REST/Transform.js
+++ b/tests/api-testing/REST/Transform.js
@@ -1185,6 +1185,7 @@ describe( '/transform/ endpoint', function () {
.send( {
html: htmlOfMainPageWithDataParsoid
} )
+ .expect( status200 )
.expect( validWikitextResponse() )
.end( done );
} );
@@ -1198,6 +1199,7 @@ describe( '/transform/ endpoint', function () {
revid: 1
}
} )
+ .expect( status200 )
.expect( validWikitextResponse() )
.end( done );
} );