fix: keep real spaces between the closer quote's words

This commit is contained in:
2026-10-12 21:10:41 +03:00
parent 88ea4f76c4
commit 3fb62f96dd
3 changed files with 7 additions and 3 deletions

View File

@@ -147,6 +147,10 @@ describe("SceneCanvas", () => {
"There is more day to dawn. The sun is but a morning star.",
);
expect(words[3]!.attributes("style")).toContain("--i: 3");
// Real spaces between the word spans, so copy and screen readers get words.
expect(wrapper.get(".journey-world__quote").element.textContent).toBe(
"There is more day to dawn. The sun is but a morning star. ",
);
expect(wrapper.get(".journey-world__by").text()).toBe("Henry David Thoreau, Walden");
expect(wrapper.get(".journey-world").element.contains(wrapper.get(".journey-world__credit").element)).toBe(true);
wrapper.unmount();