ImagesTable: indent the downloaded compose request

Prior to this commit, the downloaded request was just an ugly unformatted
json. Surely, `jq . <request.json` could fix that, but it's much more
convenient if the frontend does it itself.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2022-10-25 18:15:59 +02:00 committed by Sanne Raymaekers
parent eaf3685391
commit 47d99a3903
2 changed files with 2 additions and 2 deletions

View file

@ -584,7 +584,7 @@ describe('Images Table', () => {
const [header, encodedRequest] = hrefParts;
expect(header).toBe('data:text/plain;charset=utf-8');
expect(encodedRequest).toBe(
encodeURIComponent(JSON.stringify(expectedRequest))
encodeURIComponent(JSON.stringify(expectedRequest, null, ' '))
);
});