From db28bc4428848728a5585326a865507c3811ec91 Mon Sep 17 00:00:00 2001 From: Jason Barry Date: Tue, 4 Aug 2020 19:09:59 -0700 Subject: [PATCH] Fixes missing space when converting srcset to use absolute URLs (#40) * Fixes missing space when converting srcset to use absolute URLs * Fix integration snapshot --- src/snapshot.ts | 2 +- test/__snapshots__/integration.ts.snap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/snapshot.ts b/src/snapshot.ts index 685e0fd5..351bbc75 100644 --- a/src/snapshot.ts +++ b/src/snapshot.ts @@ -126,7 +126,7 @@ function getAbsoluteSrcsetString(doc: Document, attributeValue: string) { } return ''; }) - .join(','); + .join(', '); return resultingSrcsetString; } diff --git a/test/__snapshots__/integration.ts.snap b/test/__snapshots__/integration.ts.snap index 1e70a295..7bf95acf 100644 --- a/test/__snapshots__/integration.ts.snap +++ b/test/__snapshots__/integration.ts.snap @@ -229,7 +229,7 @@ exports[`[html file]: with-relative-res.html 1`] = ` \\"\\" \\"\\" \\"\\" - \\"\\"" + \\"\\"" `; exports[`[html file]: with-script.html 1`] = `