From 6236b1f2f434195e89b4d617a8ef2da9f724383b Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 20 Jul 2022 20:19:59 +0200 Subject: 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 --- tests/api-testing/REST/Transform.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/api-testing/REST/Transform.js') 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 ); } ); -- cgit v1.2.3