diff --git a/packages/api-prerendering-service/__tests__/render/extractPeLoaderDataFromHtml.test.ts b/packages/api-prerendering-service/__tests__/render/extractPeLoaderDataFromHtml.test.ts index 967a670437..ae5cdb8191 100644 --- a/packages/api-prerendering-service/__tests__/render/extractPeLoaderDataFromHtml.test.ts +++ b/packages/api-prerendering-service/__tests__/render/extractPeLoaderDataFromHtml.test.ts @@ -4,42 +4,14 @@ describe("extractPeLoaderDataFromHtml Tests", () => { it("must detect pe-loader-data-cache tags in given HTML", async () => { const results = extractPeLoaderDataFromHtml(TEST_STRING); + // The value is not decompressed, so it's still a string. expect(results).toEqual([ { key: "GfT8AoRsYT-1238102521", - value: [ - { - description: - "The Falcon 1 was an expendable launch system privately developed and manufactured by SpaceX during 2006-2009. On 28 September 2008, Falcon 1 became the first privately-developed liquid-fuel launch vehicle to go into orbit around the Earth.", - id: "5e9d0d95eda69955f709d1eb", - name: "Falcon 1", - wikipedia: "https://en.wikipedia.org/wiki/Falcon_1" - }, - { - description: - "Falcon 9 is a two-stage rocket designed and manufactured by SpaceX for the reliable and safe transport of satellites and the Dragon spacecraft into orbit.", - id: "5e9d0d95eda69973a809d1ec", - name: "Falcon 9", - wikipedia: "https://en.wikipedia.org/wiki/Falcon_9" - }, - { - description: - "With the ability to lift into orbit over 54 metric tons (119,000 lb)--a mass equivalent to a 737 jetliner loaded with passengers, crew, luggage and fuel--Falcon Heavy can lift more than twice the payload of the next closest operational vehicle, the Delta IV Heavy, at one-third the cost.", - id: "5e9d0d95eda69974db09d1ed", - name: "Falcon Heavy", - wikipedia: "https://en.wikipedia.org/wiki/Falcon_Heavy" - }, - { - description: - "Starship and Super Heavy Rocket represent a fully reusable transportation system designed to service all Earth orbit needs as well as the Moon and Mars. This two-stage vehicle — composed of the Super Heavy rocket (booster) and Starship (ship) — will eventually replace Falcon 9, Falcon Heavy and Dragon.", - id: "5e9d0d96eda699382d09d1ee", - name: "Starship", - wikipedia: "https://en.wikipedia.org/wiki/SpaceX_Starship" - } - ] + value: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